| Contents | Index |
You can use enumerated data at these levels of the Stateflow hierarchy:
Chart
Subchart
State
You can use enumerated data as arguments for:
State actions
Condition and transition actions
Vector and matrix indexing
MATLAB functions (see Using MATLAB Functions in Stateflow Charts)
Graphical functions (see Graphical Functions for Reusing Logic Patterns and Iterative Loops)
Simulink functions (see Using Simulink Functions in Stateflow Charts)
Truth Table blocks and truth table functions (see Truth Table Functions for Decision-Making Logic)
You can use enumerated data for simulation and Simulink Coder code generation. However, custom targets do not support enumerated data. For more information, see Rules for Using Enumerated Data in a Stateflow Chart.
![]() | Benefits of Using Enumerated Data in a Chart | Elements of an Enumerated Data Type Definition | ![]() |

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |