Stateflow    

Grouping States

Grouping a state causes Stateflow to treat the state and its contents as a graphical unit. This simplifies editing a state diagram. For example, moving a grouped state moves all its substates as well. To group a state, double-click on it or its border or select Grouped from the Make Contents submenu on the state or box shortcut menu. Stateflow thickens the state's border and grays its contents to indicate that it is grouped. To ungroup a state, double-click it or its border or select Ungrouped from the Make Contents submenu units shortcut menu. You need to ungroup a superstate to select objects within the superstate.


 Creating Substates Specifying State Decomposition