Borrar filtros
Borrar filtros

how to change range of slider (GUI)

7 visualizaciones (últimos 30 días)
Huseyin
Huseyin el 28 de Mzo. de 2014
Editada: Huseyin el 28 de Mzo. de 2014
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 comentarios
Joseph Cheng
Joseph Cheng el 28 de Mzo. de 2014
Can you supply the line of code that you are trying to execute?
Huseyin
Huseyin el 28 de Mzo. de 2014
I've just fixed it. The 'Value' property should be between min and max. I didn't know that. Now it works, thanks anyway

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Mzo. de 2014
Then try using set():
set(handleToSlider, 'min', 61);
set(handleToSlider, 'max', 250);
set(handleToSlider, 'Value', 100); % Somewhere between max and min.
  1 comentario
Huseyin
Huseyin el 28 de Mzo. de 2014
Editada: Huseyin el 28 de Mzo. de 2014
Thank you, now it works!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by