How can I programatically change the size and position of a user-defined mask in simulink?

Answers (1)

You can use set_param to set the 'Position' parameter of the mask.
>> set_param(gcb, 'Position', [180, 30, 290, 230])
Follow this answer here for more details
https://www.mathworks.com/matlabcentral/answers/218042-changing-the-size-and-position-of-the-simulink-block

Categories

Find more on Simulink in Help Center and File Exchange

Products

Release

R2017b

Asked:

on 12 Jan 2019

Commented:

on 16 Jan 2019

Community Treasure Hunt

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

Start Hunting!