Stateflow User's Guide Previous page   Next Page

Creating Default Transitions

Default transitions differ from normal transitions in not having a source object. You can create a default transition with the following process:

  1. Create a transition.
  2. Attach the destination end of the transition to an object.
  3. Position the source endpoint for the transition.

If you assume that the workspace variable sA is a handle to state A, the following commands create a default transition and position its source 25 pixels above and 15 pixels to the left of the top midpoint of state A:

The created default transition has the following appearance:

This method is also used for adding the default transitions toward the end of the example Stateflow diagram constructed in Create New Objects in the Chart.


Previous page  Entering Multiline Labels Making Supertransitions Next page

© 1994-2005 The MathWorks, Inc.