Skip to Main Content Skip to Search
Product Documentation

Improving and Tuning Your MATLAB Programs

Finding Errors Using the Code Analyzer Report

The Code Analyzer Report displays potential errors and problems, as well as opportunities for improvement in your MATLAB programs.

Access the Code Analyzer Report from the Current Folder browser. From the Actions button , select Reports.

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

The Code Analyzer Report displays a message for each line of MATLAB code it determines might be improved. For example, a common message is that a variable is defined but never used.

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

Improving Performance Using the Profiler

The MATLAB Profiler helps you improve the performance of your MATLAB programs. Run a MATLAB statement or an program 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-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS