Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to build a subsystem with the function of replacing the click menu?
1 回表示 (過去 30 日間)
古いコメントを表示
how to realize the function of double clicking the subsystem instead of clicking menu> analysis> model dependencies> model dependency viewer> model& libraries![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291600/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/291600/image.jpeg)
0 件のコメント
回答 (1 件)
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.
0 件のコメント
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!