Azzera filtri
Azzera filtri

Get value from field

2 visualizzazioni (ultimi 30 giorni)
Mohammad Mohammad
Mohammad Mohammad il 6 Gen 2024
Risposto: Walter Roberson il 6 Gen 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 Commenti
Rik
Rik il 6 Gen 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 il 6 Gen 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

Accedi per commentare.

Risposte (1)

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

Categorie

Scopri di più su Develop uifigure-Based Apps in Help Center e File Exchange

Tag

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by