| Contents | Index |
These rules apply when you use enumerated data in a chart.
Use the name of the enumerated data type as the name of the MATLAB file
that contains the type definition
Use a unique name for an enumerated data type
Do not define enumerated data at the machine level of the hierarchy
Do not use enumerated data for inputs and outputs of exported
functions
Do not assign enumerated values to constant data
Ensure unique name resolution for nonprefixed identifiers
Assign to enumerated data only expressions that evaluate to
enumerated values
Use a prefixed identifier to set the initial value of enumerated
data
Do not define minimum or maximum values for enumerated data
Do not use the ml namespace operator to access enumerated data
from the MATLAB base workspace
![]() | How to View Enumerated Values in a Stateflow Chart | Best Practices for Using Enumerated Data in a Chart | ![]() |

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 |