Get the parent Model like the Menu command "Go To Parent"

조회 수: 3 (최근 30일)
Twols
Twols 2013년 4월 2일
댓글: Francesco Ambrogi 2023년 4월 5일
Hello guys!
Is it possible to find out (using a script) the parent of a referenced model like Simulink does with "View > Go To Parent"? This command knows what was the last parent in which the user opened the child model.

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 4월 22일
편집: Kaustubha Govind 2013년 4월 22일
This is undocumented, so use with caution because there is a possibility it won't work in all (past/future) releases:
>> get_param('modename', 'ModelReferenceParent')
I would recommend submitting an enhancement request to MathWorks Tech Support to have a published API for this.
  댓글 수: 3
jrocket567
jrocket567 2022년 12월 7일
This was deprecated in R2022b.
Francesco Ambrogi
Francesco Ambrogi 2023년 4월 5일
What is the recomanded way to do that in R2022b?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by