Time to run programming
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(3 个)
Image Analyst
2013-10-21
编辑:Image Analyst
2013-10-21
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!