Is it possible to check which part of the script is taking longer time for execuation ?
Show older comments
I am running one code and it is taking longer time to run it completely. I want to check for the particular part of the script which is taking longer time for execuation so that i can make necessary changes to that particular part and reduce the run time.
Answers (2)
dpb
on 2 Oct 2014
doc profile
Mischa Kim
on 2 Oct 2014
2 votes
Prathamesh, you are looking for the Profiler. For starters, simply choose [Run and Time] to execute your script:

Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!