MATLAB: Autorun slider

slider autorun gui

hi, i already built slider in GUI, however in this moment i want to run the slider automatically (if i can control by the play and stop is better). how can i do that??? i'm completely stuck thank you!

Best Answer

Set the value property of it, after you've set up the max and min properties of course.
set(handles.slider1, 'Min', theMinValue);
set(handles.slider1, 'Max', theMaxValue);
set(handles.slider1, 'Value', theCurrentValue);