User`s guide

6 Lay Out a GUIDE GUI
Note Create your own icon with the icon editor described in “Icon Editor”
on page 15-63. See
ind2rgb for information on converting a matrix X and
corresponding colormap, i.e., an
(X, MAP) image, to RGB (truecolor) format.
Slider
To create a slider as shown in this figure:
Specif
y the range of the slider by setting its
Min property to the minim um
value o
fthesliderandits
Max property to the maximum value. The Min
proper
ty must be less than
Max.
Speci
fy the value indicated by the slider when it is created by setting the
Value
property to the appropriate number. This number must be less than
or equ
al to
Max and greater than or equal to Min.IfyouspecifyValue
outsi
de the s pecified range, the slider is not displayed.
The s
lider
Value changes by a small amount w hen a user clicks the arrow
butt
on, and changes by a larger amount w hen the user clicks the trough
(als
o called the channel). Control how the slider responds to these actions
by s
etting the
SliderStep property. Specify SliderStep as a two-element
vec
tor,
[minor_step m ajor _step],whereminor_step is less than or
equ
al to
major_step. Because specifying very small values can cause
unp
redictable slider behavior, make both
minor_step and major_st ep
gr
eater than
1e-6.Setm ajor _step to the proportion of the range that
6-42