Doug's MATLAB Video Tutorials

August 12th, 2010

MATLAB Optimize an algorithm that the profiler can not help

I very much advocate “No premature optimization” because until the code is running and pushed through the profiler, it is difficult to know where the bottlenecks of speed are.

In this video, the profiler only finds hotspots in MATLAB code that can not be further optimized. We find an algorithmic change that allows us to get the speed increase.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

Doug's picture

These postings are the author's and don't necessarily represent the opinions of The MathWorks.