필터 지우기
필터 지우기

Execution time of m-file

조회 수: 3 (최근 30일)
Mounika M
Mounika M 2013년 4월 11일
Hai. I need to find the execution time for m-files created for segmentation purpose. Which method do you prefer.I tried tic and toc but I am different results each time.Which is best to use?

채택된 답변

Andreas Goser
Andreas Goser 2013년 4월 11일
I prefer using the Profiler. It helpd to find the bottlenecks of my code.
  댓글 수: 1
Mounika M
Mounika M 2013년 4월 12일
Thanks a lot

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2013년 4월 12일
Profiler effectively turns off JIT (the just in time compilation) with the result that the profile times could turn out very different (much worse) than actual times.
You might want to use the File Exchange contribution "timeit"

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by