Set slider Max and Min value
Mostrar comentarios más antiguos
I tried to set the Min value of slider to 1 and Max value to 2. But after I execute it,the slider doesn't appear in GUI and matlab return an error: 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
Anyone know how to solve this problem?
Respuesta aceptada
Más respuestas (2)
Naseeb Gill
el 10 de Mayo de 2018
1 voto
Although the correct answer is already given by Walter Roberson, I want to add something more.
I also faced the same problem and solved it using Property Inspector of Slider.
For example, my lower limit was 0.2 and the upper limit was 0.5. So, in Property Inspector of Slider, a row with name Value is there (2nd last). By default, its value is always zero but my minimum value was 0.2 so it was showing the error. To avoid error I put Value = 0.35. As shown in Fig.
Remember your value in Value row should be equal to or more than your minimum value.

1 comentario
Alison Nguyen
el 18 de Jul. de 2018
Thank You!!! this helped so much
ns
el 11 de En. de 2013
0 votos
To create sliders using the UICONTROL function, specify the value of the slider at its time of creation to be greater than or equal to the 'Min' value. The following example code will work as expected:
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!