Main Content

Enumerations

Code generation for enumerations

Enumerations represent a fixed set of named values. Enumerations help make your MATLAB® code and generated C/C++ code more readable. For code generation, enumeration classes must derive from built-in integer types. The base type determines how the enumeration is represented in the generated code.

Topics