Profiling your MATLAB code
If you have complex code that's resource hungry, find the bottlenecks by profiling your code:
[from Anand Venkataraman]
profile on
<run your script here>
profile off
profile report[from Anand Venkataraman]
