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

2 次查看(过去 30 天)
How can I programatically change the size and position of a user-defined mask in simulink?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by