MATLAB 도움말 센터
객체의 부모 식별
parent = getParent(object)
parent = getParent(object)는 Stateflow® 차트, State Transition Table 블록, Truth Table 블록 또는 MATLAB® Function 블록에 있는 객체의 부모를 반환합니다.
parent
object
예제
모두 축소
다음 제품이 필요합니다.
이 차트에서 상태 A1의 부모는 상태 A입니다. 상태 A의 부모는 차트입니다.
A1
A
모델을 열고 차트의 Stateflow.Chart 객체에 액세스합니다.
Stateflow.Chart
open_system("sfHierarchyAPIExample") ch = find(sfroot,"-isa","Stateflow.Chart");
A1이라는 이름의 Stateflow.State 객체를 찾습니다.
Stateflow.State
sA1 = find(sfroot,"-isa","Stateflow.State",Name="A1");
상태 A1의 부모를 식별합니다. 부모의 이름을 표시합니다.
parent = getParent(sA1); parent.Name
ans = 'A'
상태 A의 부모를 식별합니다. 부모의 이름을 표시합니다.
grandparent = getParent(parent); grandparent.Name
ans = 'Chart'
Stateflow.Box
Stateflow.Function
Stateflow 차트, State Transition Table 블록, Truth Table 블록 또는 MATLAB Function 블록에 있는 객체로, 다음 유형 중 하나의 Stateflow API 객체로 지정됩니다.
Stateflow.Annotation
Stateflow.AtomicBox
Stateflow.AtomicSubchart
Stateflow.Data
Stateflow.EMFunction
Stateflow.Event
Stateflow.Junction
Stateflow.Message
Stateflow.Port
Stateflow.SimulinkBasedState
Stateflow.SLFunction
Stateflow.Transition
Stateflow.TruthTable
R2006a 이전에 개발됨
find
getChildren
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의