Programming Previous page   Next Page

Cleaning Up the Program

Even after your program is bug-free, there are still some steps you can take to improve its performance and readability. The MATLAB M-Lint utility generates a report that can highlight potential problems in your code. For example, you may be using the element-wise AND operator (&) where the short-circuit AND (&&) is more appropriate. You may be using the find function in a context where logical subscripting would be faster.

MATLAB offers M-Lint and several other reporting utilities to help you make the finishing touches to your program code. These tools are described under Tuning and Refining M-Files in the Desktop Tools and Development Environment documentation.


Previous page  Getting the Bugs Out Improving Performance Next page

© 1994-2005 The MathWorks, Inc.