필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to build a subsystem with the function of replacing the click menu?

조회 수: 1 (최근 30일)
mingqi zhang
mingqi zhang 2020년 5월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
how to realize the function of double clicking the subsystem instead of clicking menu> analysis> model dependencies> model dependency viewer> model& libraries

답변 (1개)

goerk
goerk 2020년 5월 12일
편집: goerk 2020년 5월 12일
Create an empty Subsystem.
Right-Click on the subsystem and select 'Properties...'
Go to Tab 'Callbacks' and chose 'OpenFcn'.
insert
mdlName= get_param(bdroot(gcbh),'name');
view_mdlrefs(mdlName);
to the content of callback function field.
For a detailed description see:
Note: To get the same functionality as in the example, you can simply copy the 'block' to your model.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by