Main Content
Debug and Develop Classes
Edit and debug class definitions, automatic class updates
MATLAB® reloads class definitions in response to most revisions. You do
not need to call clear classes
after making revisions. If
MATLAB is unable to update existing objects to support the revised class
definition, clear only those objects.
Functions
edit | Edit or create file |
Tools
Class Diagram Viewer | Create diagrams with class details and hierarchies (Since R2021a) |
Classes
matlab.diagram.ClassViewer | Create class diagrams in Class Diagram Viewer app (Since R2021a) |
Topics
- Use of Editor and Debugger with Classes
Accessing class files from the editor and debugger provides an effective environment for class development.
- Automatic Updates for Modified Classes
MATLAB updates instances of a class when you change the class definition. In some cases, you must clear the class before the changes can be applied.
- MATLAB Code Analyzer Warnings
The MATLAB Code Analyzer provides guidance while you write code.