How to change default action of a subsystem?
이전 댓글 표시
Hi,
I have a model with several subsystems, each with a several scopes. The default action of double clicking on the subsystem is to open the subsystem to view the blocks inside.
However, I would like to change the default action to opening the scopes inside by using the code:
open_system('Model/Subsystem/Scope')
This is similar to all the example codes with Simulink, where double-clicking on the "?" button the documentation of that model opens.
Thank you!
채택된 답변
추가 답변 (1개)
Ilham Hardy
2014년 6월 11일
Perhaps something like this?
open_system([gcb '/Scope'])
Put it in your submodel OpenFcn callback. (Right click->properties->callback->OpenFcn)
카테고리
도움말 센터 및 File Exchange에서 Component-Based Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!