| Stateflow User's Guide |
 |
Drawing a Supertransition Into a Subchart
Use the following steps to draw a supertransition from an object outside a subchart to an object inside the subchart.
| Caution
You cannot undo the operation of drawing a supertransition. When you perform this operation, the undo and redo buttons are disabled from undoing and redoing any prior operations.
|
- Position the mouse cursor over the border of the state.
- The cursor assumes the crosshairs shape.

- Drag the mouse.
- Dragging the mouse causes a supertransition segment to appear. The segment looks like a regular transition. It is curved and is tipped by an arrowhead.

- Drag the segment's tip anywhere just inside the border of the subchart.
- The arrowhead now penetrates the slit.

If you are not happy with the initial position of the slit, you can continue to drag the slit around the inside edge of the subchart to the desired location.
- Continue dragging the cursor toward the center of the subchart.
- A wormhole appears in the center of the subchart.

A wormhole allows you to open a subchart while drawing a supertransition.
- Drag the mouse pointer over the center of the wormhole.
- The subchart opens. Now the wormhole and supertransition are visible inside the subchart.

- Drag and drop the tip of the supertransition anywhere on the border of the object that you want to terminate the transition.

| Note
If the terminating object resides within a subchart in the current subchart, continue to drag the tip of the supertransition through the wormhole of the inner subchart and complete the connection inside the inner chart. In this way, you can draw a supertransition to an object at any subchart depth in the chart.
|
| Using Supertransitions to Extend Transitions | | Drawing a Supertransition Out of a Subchart |  |
© 1994-2005 The MathWorks, Inc.