Time to run programming

5 Ansichten (letzte 30 Tage)
Jerry Walker
Jerry Walker am 21 Okt. 2013
Bearbeitet: Image Analyst am 21 Okt. 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.

Antworten (3)

Azzi Abdelmalek
Azzi Abdelmalek am 21 Okt. 2013
Use
tic
%your code
toc

sixwwwwww
sixwwwwww am 21 Okt. 2013

Image Analyst
Image Analyst am 21 Okt. 2013
Bearbeitet: Image Analyst am 21 Okt. 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.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by