| Stateflow User's Guide | ![]() |
What Is a State?
A state describes a mode of a reactive Stateflow chart. States in a Stateflow chart represent these modes. The following table shows the button icon for a drawing a state in the Stateflow diagram editor and a short description.
| Name |
Button Icon |
Description |
| State |
Use a state to depict a mode of the system. |
States can be active or inactive. When a state is active, the chart takes on that mode. When a state is inactive, the chart is not in that mode. The activity or inactivity of a chart's states dynamically changes based on events and conditions. The occurrence of events drives the execution of the Stateflow diagram by making states become active or inactive. At any point in the execution of a Stateflow diagram, there is a combination of active and inactive states.
| States | State Hierarchy | ![]() |
© 1994-2005 The MathWorks, Inc.