Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

Mask Parameters

Mask Parameters (Continued)

 

Parameter

Description/Prompt

Values

 

 

MaskVisibilityString

Delimited string version of

string {''}

 

 

 

MaskVisibilities.

 

 

 

MaskWSVariables

List of the variables defined

matrix {'[]'}

 

 

 

in the mask workspace (read

 

 

 

 

only).

 

 

Notes on Mask Parameter Storage

1The MaskPromptString parameter stores the Prompt field values for all mask dialog box parameters as a string, with individual values separated by vertical bars (|), for example:

"Slope:|Intercept:"

2The MaskStyleString parameter stores the Type field values for all mask dialog box parameters as a string, with individual values separated by commas. The Popup strings values appear after the popup type, as shown in this example:

"edit,checkbox,popup(red|blue|green)"

3The MaskValueString parameter stores the values of all mask dialog box parameters 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:

"2|5"

4The MaskVariables parameter stores the Variable field values for all mask dialog box parameters as a string, with individual assignments separated by semicolons. A sequence number indicates the prompt that is associated with a variable. A special character preceding the sequence number indicates whether the parameter value is evaluated or used literally. An at-sign (@) indicates evaluation; an ampersand (&) indicates literal usage. For example:

8-265

8 Model and Block Parameters

"a=@1;b=&2;"

This string defines two Variable field values:

The value entered in the first parameter field is evaluated in the MATLAB workspace, and the result is assigned to variable a in the mask workspace.

The value entered in the second parameter field is not evaluated, but is assigned literally to variable b in the mask workspace.

8-266

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]