Video length is 41:27

Using the Profiler for Improving the Performance of My Function

I have a function that analyzes the contents of a few hundred folders. It’s taking several minutes to run and I use it a lot, so I want to try and make it execute faster.

I propose using the Profiler to try and understand where the time is spent and explore some code changes.

I often find with my performance improvement work that the first changes I make are to my algorithm or code architecture. For example, I ensure that I only execute the computations that I need to. Later, I might then look at speeding up those computations.

(Originally posted in Stuart’s MATLAB Videos blog)

Recorded: 24 Apr 2024

Related Products