Time to run programming
Mostrar comentarios más antiguos
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.
Respuestas (3)
Azzi Abdelmalek
el 21 de Oct. de 2013
Use
tic
%your code
toc
sixwwwwww
el 21 de Oct. de 2013
Yes you can use
tic
your code...
toc
Image Analyst
el 21 de Oct. de 2013
Editada: Image Analyst
el 21 de Oct. de 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.
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!