Return transitions that have object as source
transitions = sourcedTransitions(thisObject)
sourcedTransitions function returns all inner and outer
transitions that have this object as their source.
Source object of the returned transitions. Can be of type State, Box, or Junction.
Array of all transitions whose source is this object
The following example shows how to find all transitions whose source is the state
sf_car; rt = sfroot; ss_state = find(rt,'-isa','Stateflow.State','Name','steady_state'); sourced_trans = sourcedTransitions(ss_state);