Effacer les filtres
Effacer les filtres

Get value from field

2 vues (au cours des 30 derniers jours)
Mohammad Mohammad
Mohammad Mohammad le 6 Jan 2024
I want to create an entryfield and read the numeric value in it. Icreated the field but cant get the number from it.
  4 commentaires
Rik
Rik le 6 Jan 2024
There doesn't seem to be anything wrong with this code, other than that you have no time to put in a value before it is retrieved.
Mohammad Mohammad
Mohammad Mohammad le 6 Jan 2024
Error using uieditfield
'limits' is not a valid STYLE for uieditfield. STYLE must be 'text' or 'numeric'.
Error in createGUI (line 35)
thresholdField = uieditfield(fig, 'numeric', 'limits', [0, inf]);
it gives this error

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 6 Jan 2024
You would get that error if fig is a figure() instead of being a uifigure()

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Tags

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by