Hello, I am working with masks in Simulink. I create it and i use a groupbox and a tab inside it to group the parameters. Is there a way to access the groupbox and tab, and to change their Visibility, using the 'get_param' and 'set_param' methods in the Matlab command window?

답변 (2개)

bert de Jong
bert de Jong 2019년 11월 25일

1 개 추천

First get the mask into your workspace:
mask = Simulink.Mask.get('YourSimulinkBlockPathHere');
Then there is an undocumented funcion called getDialogControls:
mask.getDialogControls()
This will give you a container object which contains your groupboxes etc. I'm sure you will find your way from there...
Sebastian Schulte
Sebastian Schulte 2018년 12월 7일

0 개 추천

Have you found a solution? (comic)

카테고리

도움말 센터File Exchange에서 Author Block Masks에 대해 자세히 알아보기

질문:

2017년 5월 8일

답변:

2019년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by