| Stateflow User's Guide | ![]() |
Creating Exclusive States
The states that you have seen so far in this Getting Started guide are exclusive states. Exclusive states have solid borders and are sometimes referred to as OR states. You create them by assigning the parent of the states exclusive decomposition. Because this is the default setting for Stateflow charts, all the states you have created so far have been exclusive.
The distinguishing feature about exclusive states is that only one state among brother and sister states can become active at any one time. For example, if you have a chart with the states On and Off, only one of these states can become active when you update the chart. You specify that state with a default transition.
| Controlling Objects with Parallel Superstates | Creating Parallel States | ![]() |
© 1994-2005 The MathWorks, Inc.