Simulink Reference | ![]() ![]() |
Mask Parameters
This section lists parameters that describe masked blocks. This table lists masking parameters, which correspond to Mask Editor dialog box parameters.
When you use the Mask Editor to create a dialog box parameter for a masked block, you provide this information:
The mask parameters, listed in the table on the previous page, store the values specified for the dialog box parameters in these ways:
MaskPromptString
parameter as a string, with individual values separated by a vertical bar (|), as shown in this example.
MaskVariables
parameter as a string, with individual assignments separated by a semicolon. A sequence number indicates the prompt that is associated with a variable. A special character preceding the sequence number indicates the Assignment type: @ indicates Evaluate, & indicates Literal.
a
and is evaluated in MATLAB before assignment, and the value entered in the second field is assigned to variable b
and is stored as a literal, which means that its value is the string entered in the dialog box.
MaskStyleString
parameter as a string, with individual values separated by a comma. The Popup strings values appear after the popup
type, as shown in this example:
MaskValueString
mask parameter as a string, with individual values separated by a vertical bar. The order of the values is the same as the order in which the parameters appear on the dialog box. For example, these statements define values for the parameter field prompts and the values for those parameters:
![]() | Block-Specific Parameters | Model File Format | ![]() |