필터 지우기
필터 지우기

Issue with MATLAB Sliders Parameters?

조회 수: 10 (최근 30일)
Dominic Green
Dominic Green 2014년 5월 16일
댓글: Dominic Green 2014년 5월 17일
Hi all,
I am currently using GUIDE to work on a project. Using Sliders (and edit textboxes) as an input for certain values.
The issue is, when I try to add a second slider, when the program is run, the slider has not loaded and the error message apears as below:
Warning: slider control can not have a Value outside of Min/Max range Control will not be rendered until all of its parameter values are valid
I know what this message should mean, it's that the value of the slider is exceeding the maximum and minimum parameters set in the properties. However the slider is set to
Max = 10.0 Min = 0.0
I cannot work out why it won't even load and I've tried restarting the program. Has anyone had this issue and/or know of a possible solution??
Thanks,

답변 (1개)

Henric Rydén
Henric Rydén 2014년 5월 16일
편집: Henric Rydén 2014년 5월 16일
The problem is that the Value property of the slider is outside of your Min-Max range. When this happens, the slider is destroyed.
You should be able to see the value in the property editor in GUIDE. If the value is set in your code, set a debug point on that line and see what value your code wants to set. You read the value using the get command:
theValue = get(handles.slider1,'Value')
  댓글 수: 1
Dominic Green
Dominic Green 2014년 5월 17일
Thank you!! yeah I just had to change the Value in 'Value' properties.
Still getting used to GUIDE :)

댓글을 달려면 로그인하십시오.

카테고리

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