Stateflow User's Guide Previous page   Next Page

Creating a Subchart

You create a subchart by converting an existing state, box, or graphical function into the subchart. The object to be converted can be one that you have created expressly for the purpose of making a subchart or it can be an existing object whose contents you want to turn into a subchart.

To convert a new or existing state, box, or graphical function to a subchart:

  1. Select the object and right-click a state (SC1 in the example below) to display the Stateflow shortcut menu for that state.

  2. Select Make Contents from the resulting menu.
  3. Select Subcharted from the resulting submenu.
  1. Stateflow converts the state (or a graphical function or box) to a subchart.

To convert the subchart back to its original form, right-click the subchart. In the pop-up menu that results, select Make Contents. In the resulting submenu select the Subcharted item.


Previous page  Using Subcharts to Extend Charts Manipulating Subcharts as Objects Next page

© 1994-2005 The MathWorks, Inc.