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