As you work in the Editor, MATLAB® automatically identifies potential coding problems. Debugging features help you diagnose specific issues. Additionally, you can generate reports that help you update your code when you upgrade to a newer MATLAB release.
To debug your MATLAB program graphically, use the Editor/Debugger. Alternatively, you can use debugging functions in the Command Window.
Annotating a file makes it easier to find areas of your code that you intend to improve, complete, or update later.
Use Editor/Debugger preferences to customize the Editor.
Some entries appear in different colors in the Command Window, the Editor, and the Live Editor to help you identify MATLAB elements. This is known as syntax highlighting.
Check Code for Errors and Warnings
Use the MATLAB Code Analyzer to check your code for coding problems automatically.
Generate a report that identifies potential errors, problems, and opportunities for improvement in your code.
Set Code Analyzer preferences to enable or disable Code Analyzer features and specify message indicator preferences.
MATLAB Code Compatibility Report
Generate a report to identify potential compatibility issues in your code when you upgrade to a newer MATLAB release.