Azzera filtri
Azzera filtri

Time to run programming

2 visualizzazioni (ultimi 30 giorni)
Jerry Walker
Jerry Walker il 21 Ott 2013
Modificato: Image Analyst il 21 Ott 2013
Is there a way to insert code to determine the length of time MATLAB takes to process sections of coding? For example the time it takes to run thru a loop.

Risposte (3)

Azzi Abdelmalek
Azzi Abdelmalek il 21 Ott 2013
Use
tic
%your code
toc

sixwwwwww
sixwwwwww il 21 Ott 2013

Image Analyst
Image Analyst il 21 Ott 2013
Modificato: Image Analyst il 21 Ott 2013
You can use tic and toc
tic;
% code
toc;
or you can use the new timeit() function:
Or you can push the "Run and Time" button on the toolbar.

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by