Is it possible to check which part of the script is taking longer time for execuation ?

16 views (last 30 days)
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
dpb on 2 Oct 2014
doc profile

Mischa Kim
Mischa Kim on 2 Oct 2014
Prathamesh, you are looking for the Profiler. For starters, simply choose [Run and Time] to execute your script:

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!