주요 콘텐츠

sourcedTransitions

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

설명

transitions = sourcedTransitions(source)는 지정된 소스를 갖는 Stateflow.Transition 객체로 구성된 배열을 반환합니다.

예제

예제

모두 축소

상태 A1에서 나가는 천이를 찾습니다.

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");

A1이라는 이름의 Stateflow.State 객체를 찾습니다.

sA1 = find(sfroot,"-isa","Stateflow.State",Name="A1");

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

tr = sourcedTransitions(sA1);
tr.Destination.Name
ans = 
'A2'

입력 인수

모두 축소

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

버전 내역

R2006a 이전에 개발됨