Identify transitions with specified source
returns an array of
transitions = sourcedTransitions(
Stateflow.Transition objects with
the specified source.
Identify Transitions With Specified Source
Find the transition that exits state
Open the model and access the
Stateflow.Chart object for the chart.
open_system("sfHierarchyAPIExample") ch = find(sfroot,"-isa","Stateflow.Chart");
Stateflow.State object named
sA1 = find(sfroot,"-isa","Stateflow.State",Name="A1");
Identify the transition whose source is state
A1. Display the name of the destination.
tr = sourcedTransitions(sA1); tr.Destination.Name
ans = 'A2'
source — Source object
Stateflow.Junction object |
Stateflow.Port object |
Source object, specified as a Stateflow® API object of one of these types:
Introduced before R2006a