Speed of a MATLAB code
古いコメントを表示
Hello
How to calculate the speed of execution of a MATLAB Code?
採用された回答
その他の回答 (1 件)
Iain
2013 年 5 月 28 日
2 投票
You can measure the time taken to execute a chunk of code using "now", or tic and toc,
tic;
codegoeshere;
toc % prints the time taken to screen.
logtime(1) = now;
code_segment
logtime(2) = now;
code_segment
...
logtime(n) = now;
カテゴリ
ヘルプ センター および 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!