Main Content

Class File Organization

Class syntax, attributes, and organization in files and folders

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. Create aliases to rename classes while maintaining backward compatibility.

Functions

classClass of object
classdefClass definition keywords
isobjectDetermine if input is MATLAB object
importAdd namespace, class, or functions to current import list

Classes

matlab.alias.AliasFileManagerCreate and manage class alias definitions (Since R2021b)

Topics

Defining Classes

Class and Package Folders

Expressions in Classes

Class Aliasing