Specifications

3 Laying Out GUIs and Setting Properties
3-46
Note If you have set units for your GUI to characters, certain combinations
of width and height produce a slider with the opposite orientation from the
intended. This is because a character is rectangular, i.e., it is higher than it is
wide.
Current Value, Range, and Step Size. There are four properties that control the
range and step size of the slider:
Value contains the current value of the slider.
Max defines the maximum slider value.
Min defines the minimum slider value.
SliderStep specifies the size of a slider step with respect to the range.
The
Value property contains the numeric value of the slider. You can set this
property to specify an initial condition and query it in the slider’s callback to
obtain the value set by the user. For example, your callback could contain the
statement
slider_value = get(handles.slider1,'Value');
The Max and Min properties specify the slider’s range (Max - Min).