Class: Simulink.MaskParameter
Package: Simulink
Set properties of mask parameters
Simulink.MaskParameter.set(Name,Value)
Simulink.MaskParameter.set(
sets
the properties of a mask parameter.Name,Value
)
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Type of control that is used to specify the value of this parameter. Default: edit |
|
The options that are displayed within a popup control or in a promoted parameter. This field is a cell array. Default: empty |
|
The name of the mask parameter. This name is assigned to the mask workspace variable created for this parameter. Default: empty |
|
Text that identifies the parameter on the Mask Parameters dialog. Default: empty |
|
The default value of the mask parameter in the Mask Parameters dialog. Default: Type specific; depends on the |
|
Option to specify whether parameter must be evaluated. Default: |
|
Option to specify whether parameter is tunable. Default: |
|
Option to specify whether user can set parameter value. Default: |
|
Option to set whether mask parameter is hidden or visible to the user. Default: |
|
Container for MATLAB® code that executes when user makes a change in the Mask Parameters dialog and clicks Apply. Default: empty |
Get mask as an object using a masked block’s path.
p = Simulink.Mask.get('myModel/Subsystem');
Get a mask parameter.
a = p.Parameters(1);
Edit mask parameter so it is of type popup, cannot be evaluated.
a.set('Type','popup','TypeOptions',{'Red' 'Blue' 'Green'},... 'Evaluate','off');