Browsing the subsystem inside model using mscript
1 回表示 (過去 30 日間)
古いコメントを表示
Aravind Sivanesan
2022 年 10 月 5 日
コメント済み: Benjamin Thompson
2022 年 10 月 11 日
Im creating a GUI. Is it possible for me to browse the particular subsystem inside the model using mscripts.
Im able to browse the model using uigetfile. But is there any commands which can browse the particular subsystem using any functions.
0 件のコメント
採用された回答
Benjamin Thompson
2022 年 10 月 10 日
You can use open_system to open a Simulink model to some subsystem inside the model. The second parameter to open_system should be 'window'.
2 件のコメント
Benjamin Thompson
2022 年 10 月 11 日
Yes you can do this with open_system also. Type "doc open_system" in MATLAB to get examples. Something like:
open_system('main_file/subsystem1/subsystem2', 'window');
The first argument is the full path down to the subsystem level. Note that this may not work if your subsystem is actually a reference model or in a library which is a different file.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!