Use hierarchy in Stateflow® to manage multilevel states, where entry to one state must be preceded by entry to an outer state. With supertransitions, you can navigate to any level within your chart. Subcharts simplify your complex charts into organized units.
How to handle multilevel state complexity
Explains how different graphical and nongraphical constructs interact during chart execution
Shows you how to make a supertransition to connect transitions from outside a subchart to a state or junction inside a subchart
Shows you how to create and work with charts within charts, that is, subcharts
Describes how to create boxes for grouping objects in your charts
Shows how to create test vectors that change dynamically during simulation