MATLAB Answers


how can I get execution time for each time?

Asked by ahmed youssef on 10 Dec 2016
Latest activity Commented on by ahmed youssef on 12 Dec 2016
I have a problem in my code.It takes so long unlike before. I just need to know command that measure "each line" execution time in order to figure out my problem thank you in advance


Sign in to comment.


1 Answer

Answer by the cyclist
on 10 Dec 2016
Edited by the cyclist
on 10 Dec 2016
 Accepted Answer

I would start by reviewing this documentation page about code performance.


These commands are clear. However, I need program/code to compute time-consuming in each line not entire program.
Please look a little more carefully. For example, the profile command returns line-by-line results.
thank you. solved my problem

Sign in to comment.