How to make a slider in GUI with a variable range?

how to make a slider in the range 100-120 in GUI? or that does not start with 0? because if it does not start at 0 slider will disappear ? example : min 100 max = 120
thanks so much ---best regards >devia

 Réponse acceptée

Image Analyst
Image Analyst le 12 Fév 2013

0 votes

Sure. Just use GUIDE (see Doug Hull's blog on it) and place a slider on the figure. Then double click it and set the min and max property. Make sure you set the value to be between min and max or it will not display the slider when you run it.

Plus de réponses (1)

Devia Rafika Putri
Devia Rafika Putri le 12 Fév 2013

0 votes

oke, thanks i'm sorry but it means slider GUI can't have minimum value > 0 ??

4 commentaires

Why do you say that? I believe I've used mins more than 0 in the past. Why don't you just try it? (By the way, your response should have been a "Comment", not an "Answer" to your original question.)
i'm sorry i was wrong.. i am newbie in mathworks..
and I've tried it several times with mins more than 0 and the slider in GUI disappeared
thanks.
The "Value" property must be between the "Min" property and the "Max" property or else it won't appear.
Thank you so much Mr.. its working..
best regards Devia

Connectez-vous pour commenter.

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by