Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Improving and Tuning M-Files

Finding Errors Using the M-Lint Code Check Report

The M-Lint Code Check Report displays potential errors and problems, as well as opportunities for improvement in your M-files. The term lint is used by similar tools in other programming languages such as C.

Access the M-Lint Code Check Report and other reports from the Current Folder browser. From the Actions button , select Reports.

You run a report for all files in the current folder.

The M-Lint Code Check Report displays a message for each line of an M-file it determines might be improved. For example, a common M-Lint message is that a variable is defined but never used in the M-file.

Alternatively, you can use automatic M-Lint code checking to view M-Lint messages while you work on a file in the Editor. You can also use the mlint function to get results for a single M-file.

Improving Performance Using the Profiler

The MATLAB Profiler helps you improve the performance of your M-files. Run a MATLAB statement or an M-file in the Profiler and it produces a report of where the time is being spent. Access the Profiler from the Desktop menu, or use the profile function.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS