주요 콘텐츠

innerTransitions

지정된 소스를 갖는 내부 천이 식별

설명

transitions = innerTransitions(source)는 지정된 소스 상태의 내부 천이에 해당하는 Stateflow.Transition 객체로 구성된 배열을 반환합니다. 내부 천이는 소스 상태에서 나가지 않는 천이입니다. 자세한 내용은 Control Chart Execution by Using Inner Transitions 항목을 참조하십시오.

예제

예제

모두 축소

ch가 이 차트에 해당하는 Stateflow.Chart 객체라고 가정하겠습니다.

Stateflow chart with a hierarchy of states. The chart contains states A and C. State A contains an inner state called B.

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

sA = find(ch,"-isa","Stateflow.State",Name="A");

소스가 상태 A이고 대상이 상태 A 내부에 있는 천이를 식별합니다. 대상의 이름을 표시합니다.

tr = innerTransitions(sA);
tr.Destination.Name
ans =

    'B'

입력 인수

모두 축소

소스 상태로, Stateflow.State 객체로 지정됩니다.

버전 내역

R2006a 이전에 개발됨