MATLAB Answers

how to change range of slider (GUI)

83 views (last 30 days)
Huseyin on 28 Mar 2014
Edited: Huseyin on 28 Mar 2014
I tried to change the min and max value of the slider (0 and 1) as min=61 max=250 by UICONTROL but matlab does not let me to do it. It gives me warning. How can I fix that?
Huseyin on 28 Mar 2014
I've just fixed it. The 'Value' property should be between min and max. I didn't know that. Now it works, thanks anyway

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 28 Mar 2014
Then try using set():
set(handleToSlider, 'min', 61);
set(handleToSlider, 'max', 250);
set(handleToSlider, 'Value', 100); % Somewhere between max and min.
  1 Comment
Huseyin on 28 Mar 2014
Thank you, now it works!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!