Clear Filters
Clear Filters

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

2 views (last 30 days)
How can I programatically change the size and position of a user-defined mask in simulink?

Answers (1)

Ashutosh Prasad
Ashutosh Prasad on 15 Jan 2019
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

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!