Enumerated Data
Finite set of name-based values
An enumerated data type contains a finite set of name-based values defined in a MATLAB® class. To enhance the readability of a Stateflow® chart, refer to enumerated values by name. Group related values into separate enumerated data types to avoid defining a long list of constants.
Topics
- Reference Values by Name by Using Enumerated Data
Restrict data to a finite set of name-based values.
- Define Enumerated Data Types
Tasks for defining enumerated data in a Stateflow chart.
- Assign Enumerated Values in a Chart
Build a chart that uses enumerated values to issue a status keyword.
- Best Practices for Using Enumerated Data
Guidelines for effective use of enumerated data.