how to change range of slider (GUI)

7 次查看(过去 30 天)
Hi,
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?
Thanks
  2 个评论
Joseph Cheng
Joseph Cheng 2014-3-28
Can you supply the line of code that you are trying to execute?
Huseyin
Huseyin 2014-3-28
I've just fixed it. The 'Value' property should be between min and max. I didn't know that. Now it works, thanks anyway

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2014-3-28
Then try using set():
set(handleToSlider, 'min', 61);
set(handleToSlider, 'max', 250);
set(handleToSlider, 'Value', 100); % Somewhere between max and min.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by