MATLAB: How to add a mask parameter to a simulink block

add_parammask parametermasked blockparameters

Hello everyone,
For the purpose of my internship, I need to automate the creation of the mask parameters on a Simulink block.
Do you know if there is any Matlab instruction to add a parameter to a simulink block?
I thought to use this instruction
add_param('sys','parameter1','value1')
but unfortunately it works only for a block diagram, not for a single block.
thanks 4 reading

Best Answer

You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc.