Main Content

sinkedTransitions

Return transitions that have object as destination

Syntax

transitions = sinkedTransitions(thisObject)

Description

The sinkedTransitions function returns all inner and outer transitions that have this object as their destination.

Arguments

thisObject

Destination object of the returned transitions. Can be of type State, Box, or Junction.

Returns

transitions

Array of all transitions whose destination is this object.

Examples

The following example shows how to find all transitions whose destination is the state named steady_state.

sf_car;
rt = sfroot;
ss_state = find(rt,'-isa','Stateflow.State','Name','steady_state');
sinked_trans = sinkedTransitions(ss_state);
Introduced in R2012a