Browsing the subsystem inside model using mscript
조회 수: 1 (최근 30일)
이전 댓글 표시
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!