measure the time and run of each part

hi, how can measure the time of each part running in my code, if these parts within loop? i.e I want the total time of each part after finish the loop. thanks

 Accepted Answer

Have you tried the "Run and time" button on the toolstrip?

3 Comments

No, i don't know how use it and where it
If you have R2012b or later, it's on the Home tab (tool bar ribbon). If you have an earlier version, ask someone else, like the Mathworks, because I don't have old versions. I think it's called something like profiler, perhaps - I don't remember.
thank u so much, I got it

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements 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!