how to change range of slider (GUI)

5 ビュー (過去 30 日間)
Huseyin
Huseyin 2014 年 3 月 28 日
編集済み: Huseyin 2014 年 3 月 28 日
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.
  1 件のコメント
Huseyin
Huseyin 2014 年 3 月 28 日
編集済み: Huseyin 2014 年 3 月 28 日
Thank you, now it works!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by