Identify transitions with specified destination
Identify Transitions With Specified Destination
ch is the
Stateflow.Chart object that corresponds to this chart.
Stateflow.State object named
sA2 = find(ch,"-isa","Stateflow.State",Name="A2");
Identify the transition whose destination is state
Display the name of the source.
tr = sinkedTransitions(sA2); tr.Source.Name
ans = 'A1'
Introduced in R2012a