Stateflow.Transition

Create transition

Syntax

transition_new = Stateflow.Transition(parent)

Description

The Stateflow.Transition method is a constructor method for creating a transition in a parent chart, state, box, or graphical function. This method returns a handle to the new Transition object.

Arguments

parent

Handle to parent chart, state, box, or function of new transition

Returns

transition_new

Handle to Transition object for the new transition

Examples

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:

transition_new = Stateflow.Transition(sA)

The new transition is unlabeled and appears in the upper left corner of the chart. 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.

Introduced before R2006a