| Stateflow User's Guide | ![]() |
Constructor for creating a transition
Syntax
Description
The Stateflow.Transition method is a constructor method for creating transitions in a parent chart, state, box, or function that returns a handle to a Transition object for the new transition.
Arguments
parent |
Handle to parent chart, state, box, or function of new transition |
Returns
transition_new |
Handle to Transition object for the new transition |
Example
If sA is a handle to a State object for the existing state A, the following command creates a new transition parented by state A:
The new transition is unlabeled and appears in the upper left corner of the chart in the diagram editor. transition_new is a handle to the Transition object for the new transition that you use to rename the transition, set its properties, and execute its methods.
| Stateflow.Target | Stateflow.TruthTable | ![]() |
© 1994-2005 The MathWorks, Inc.