Simulink® enumerations are built on enumerations defined for the MATLAB® language. They are subclasses of the abstract superclass Simulink.IntEnumType, and inherit from that superclass the capabilities necessary to be used in the Simulink environment.
Before you begin to use enumerations in a modeling context, you should understand information provided in Enumerations.
The following examples show how to use enumerations in Simulink and Stateflow®:
|Example||Shows How To Use...|
|Data Typing in SimulinkData Typing in Simulink||Data types in Simulink, including enumerated data types|
|Modeling a CD Player/Radio Using Enumerated Data TypesModeling a CD Player/Radio Using Enumerated Data Types||Enumerated data types in a Simulink model that contains a Stateflow chart|
For information on using enumerations in Stateflow, see Enumerated Data.