how to know how much time it takes to run the matlab code?
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
Dear sir/madam,
I need to know, how much time does a code take to run and display the output? how can I calculate this in matlab? Looking forward to hearing from you soon.
Thanking you, BSD
댓글 수: 0
채택된 답변
  Fangjun Jiang
      
      
 2011년 7월 22일
        tic;
% do stuff
toc;
Also, see cputime(), etime(), clock()
댓글 수: 1
  Jan
      
      
 2011년 7월 23일
				And PROFILE. Be aware that CPUTIME can lead to unexpected results if you run a multi-core machine. And CLOCK suffers from its connection to the real time clock: Changing the day-light-saving time or an automatic update of the clock via NTP can disturb the speed measurements.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


