Stuart’s MATLAB Videos

Watch and Learn

Example of Using the Profiler to Help Reduce the Execution Time of a Function

I have a function which analyzes the contents of a few hundred folders. Its 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, by ensuring that I only execute the computations that I need to. Later, I might then look at speeding up those computations.

Features covered in this code-along style video include:

Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
  • Chapters
  • descriptions off, selected
  • captions off, selected

      Play the video in full screen mode for a better viewing experience. 

      |
      • print

      Comments

      To leave a comment, please click here to sign in to your MathWorks Account or create a new one.

      Loading...
      Go to top of page