Main Content

outerTransitions

R2026b

Identify outgoing transitions with specified source

Description

transitions = outerTransitions(source) returns an array of Stateflow.Transition objects that correspond to the outer transitions of the specified source state. An outer transition is a transition that exits the source state.

example

Examples

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 outside of state A. Display the name of the destination.

tr = outerTransitions(sA);
tr.Destination.Name
ans =

    'C'

Input Arguments

collapse all

Source state, specified as a Stateflow.State object.

Tips

  • The outerTransitions function is not supported for Stateflow.StateTransitionTableChart objects. State transition tables define transitions by using transition cells in rows. To access the transitions from a row, use the getTransitionCells object function of the Stateflow.StateTransitionTableRow object.

Version History

Introduced before R2006a