next up previous contents
Next: Menu Items Up: Commonly Used Code Previous: Drop-down Menus   Contents

Sliders

The following code will fetch the quantised value of the slider and assign it to a new object called slider_value.

set(handles.slider_value, 'String', num2str(ceil(get(handles.slider, 'Value'))));



2004-05-19