Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

– Slider

– You can determine the current value of a slider from within its callback by querying
its Value property, as illustrated in the following example:

function slider1_Callback(hObject, eventdata, handles)

slider_value = get(hObject,'Value');

% Proceed with callback...

The Max and Min properties specify the slider's maximum and minimum values. The slider's range is
Max - Min.

You might also like