Filter löschen
Filter löschen

Get value from field

2 Ansichten (letzte 30 Tage)
Mohammad Mohammad
Mohammad Mohammad am 6 Jan. 2024
Beantwortet: Walter Roberson am 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 Kommentare
Rik
Rik am 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 am 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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Develop uifigure-Based Apps finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by