How to set visibility of Button in SIMULINK Mask ?
Show older comments
I have created a "button" in a Block mask. I want to change its visibility. I have have tried set_param command with 'MaskVisibilities' but that wont work since there is no serial number against "Button". I have also tried get_param() using 'DialogParameters' but still didnt get the properties of button.
Accepted Answer
More Answers (2)
Fangjun Jiang
on 22 Aug 2016
0 votes
Select your masked block, type "get(gcbh)" in Command window to see a full list of parameters and their values.
get/set either of this should work.
get(gcbh,'MaskVisibilities')
get(gcbh,'MaskVisibilityString')
John D
on 19 Oct 2016
0 votes
As the questioner said, "that wont work since there is no serial number" Does not work for me either.
Categories
Find more on Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!