MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Control Description Configuration Details
Drop-Down
List

Use drop-down lists to
interactively change the value of a
variable by selecting from a list of
values.

Hover over the text displayed in
the drop-down list to see its
current value.

In the Items section, in the Item
Labels field, specify the text that
you want to display for each item
in the drop-down list.

In the Item Values field, specify
the values for each item in the
drop-down line. Make sure to
enclose text values in quotes or
double quotes, because the Live
Editor interprets each item in the
list as code.
Check Box Use check boxes to interactively
set the value of a variable to either
the logical value 1 (true) or the
logical value 0 (false).

The displayed state of the check
box (checked or not checked)
determines its current value.

N/A


Edit Field Use edit fields to interactively set
the value of a variable to any typed
input.

The text displayed in the edit field
and the selected data type
determines its current value.

In the Type section, in the Data
type field, select from the
available options to specify the
data type of the text in the edit
field.

19 Live Scripts and Functions

Free download pdf