Specify class attributes in the class definition block and organize class files and folders using packages. Learn how MATLAB® evaluates expressions used in class definitions.
MATLAB enables you to define classes to implement object-oriented designs.
Class attributes enable you to modify the behavior of classes that you define.
Folders Containing Class Definitions
Define special folders for class files to contain multiple files for class definitions.
Use packages to organize classes into separate namespaces.
Specify a relative precedence among user-defined classes
Import classes into functions to simplify name references.
Evaluation of Expressions in Class Definitions
You can use MATLAB expressions to define values for attributes and properties.