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!