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'