Effacer les filtres
Effacer les filtres

Control value range in matlab UI spinner

2 vues (au cours des 30 derniers jours)
Tino
Tino le 17 Juil 2019
Commenté : LO le 3 Juil 2020
Hello
I have a function that enables you to add numbers through spinner on the app designer
how do I control the value range from ( 0.1 to 1)
find the function below
function EnumSpinnerValueChanged(app, event)
value = app.EnumSpinner.Value;
end
end
Thanks in advance
Tino
  1 commentaire
Adam
Adam le 17 Juil 2019
It should be in the setup of the spinner ini the design view where you will have min and max options. I can't remember off-hand, I don't use app designer, but when you add a component you get a bunch of options for it appearing somewhere over to the bottom right (I think) of the design view to customise the initial options.

Connectez-vous pour commenter.

Réponses (1)

Vimal Rathod
Vimal Rathod le 30 Juil 2019
You can control the range of a UI Spinner by setting the Limits property to the desired range of value.
Refer to the properties of UI Spinner for more information:
  1 commentaire
LO
LO le 3 Juil 2020
how can one set the limits based on edits taken from a text box entry ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by