How to change the visibility of text and buttons in a simulink mask

1 回表示 (過去 30 日間)
Oliver
Oliver 2015 年 8 月 6 日
回答済み: Varun Bhaskar 2015 年 8 月 11 日
Hello,
i am trying to change the appearence of my mask programmaticaly. I am aware of the posibility to change the visibility of mask parameters via set_param (gcb, 'MaskVisibilities') but this applies on Parameters only. How am i supposed to Change the visibility of Buttons and text - fields? Is there a way to do that?
Thanks for your help! Oli

回答 (1 件)

Varun Bhaskar
Varun Bhaskar 2015 年 8 月 11 日
Hello Oliver,
You can change the text and visibility of the Simulink Mask in the following way:
p = Simulink.Mask.create(gcb);
p.set('Display','plot(1:10)');
p.set('IconFrame','off');
Please find the following documentation links to be useful :

カテゴリ

Help Center および File ExchangeAuthor Block Masks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by