| Using Simulink | Search  Help Desk |
Mask Parameters
This section lists parameters that describe masked blocks. This table lists masking parameters, which correspond to Mask Editor dialog box parameters.MaskPromptString parameter as a string, with individual values separated by a vertical bar (|), as shown in this example.
"Slope:|Intercept:"
MaskVariables parameter as a string, with individual assignments separated by a semi-colon. A sequence number indicates which prompt is associated with a variable. A special character preceding the sequence number indicates the Assignment type: @ indicates Evaluate, & indicates Literal.
For example, "a=@1;b=&2;" indicates that the value entered in the first parameter field is assigned to variable 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:
"edit,checkbox,popup(red|blue|green)"
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 the parameters appear on the dialog box. For example, these statements define values for the parameter field prompts and the values for those parameters.
MaskPromptString "Slope:|Intercept:" MaskValueString "2|5"