Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
Sometimes when you are working on a User Interface you want to use the profiler to speed up the code. However, with a UI so much time can be spent by the user rather than the code of interest that the timing is not as precise as would be preferred.
I like this technique so that I can do ad hock timings as needed in a complicated User Interface in MATLAB.
Recorded: 3 May 2013