Programming and Data Types    

Maximizing MATLAB Performance


This chapter describes techniques that often improve the execution speed and memory management of MATLAB code. It covers the following topics:
Techniques for Improving Performance
How to improve M-file performance by vectorizing loops, preallocating arrays, etc.
Performance Acceleration
Some M-file coding practices to use, and some to avoid, in getting the best performance out of MATLAB
Sample Accelerated Programs
Sample M-file programs written to maximize MATLAB code acceleration
Measuring Performance
Using the MATLAB Profiler utility to tune your programs for optimal performance.
Making Efficient Use of Memory
Conserving memory; platform-specific memory handling, "Out of Memory" errors.


  Querying Which Method MATLAB Will Call Techniques for Improving Performance