주요 콘텐츠

sinkedTransitions

지정된 대상을 갖는 천이 식별

설명

transitions = sinkedTransitions(destination)은 지정된 대상을 갖는 Stateflow.Transition 객체로 구성된 배열을 반환합니다.

예제

예제

모두 축소

상태 A2로 진입하는 천이를 찾습니다.

Stateflow chart with a hierarchy of states. The outer state is called A. It contains two inner states called A1 and A2.

모델을 열고 차트의 Stateflow.Chart 객체에 액세스합니다.

open_system("sfHierarchyAPIExample")
ch = find(sfroot,"-isa","Stateflow.Chart");

이름이 A2Stateflow.State 객체를 찾습니다.

sA2 = find(sfroot,"-isa","Stateflow.State",Name="A2");

대상이 상태 A2인 천이를 식별합니다. 소스의 이름을 표시합니다.

tr = sinkedTransitions(sA2);
tr.Source.Name
ans = 
'A1'

입력 인수

모두 축소

대상 객체로, 다음 유형 중 하나의 Stateflow® API 객체로 지정됩니다.

버전 내역

R2012a에 개발됨