Main Content


Identify inner transitions with specified source



transitions = innerTransitions(source) returns an array of Stateflow.Transition objects that correspond to the inner transitions of the specified source state. An inner transition is a transition that does not exit the source state. For more information, see Control Chart Execution by Using Inner Transitions.


collapse all

Suppose that ch is the Stateflow.Chart object that corresponds to this chart.

Stateflow chart with a hierarchy of states. The chart contains states A and C. State A contains an inner state called B.

Find the Stateflow.State object named A.

sA = find(ch,"-isa","Stateflow.State",Name="A");

Identify the transition whose source is state A and whose destination is inside state A. Display the name of the destination.

tr = innerTransitions(sA);
ans =


Input Arguments

collapse all

Source state, specified as a Stateflow.State object.

Version History

Introduced before R2006a