필터 지우기
필터 지우기

how to change range of slider (GUI)

조회 수: 7 (최근 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 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