The basic workflow for generating code for enumerated types in MATLAB® code is:
Define an enumerated data type that derives from one
of these base types: int8
, uint8
, int16
, uint16
,
or int32
.
Save the enumerated data type in a file on the MATLAB path.
Write a MATLAB function that uses the enumerated type.
Specify enumerated type inputs.
Generate code.