Clear Filters
Clear Filters

Get value from field

2 views (last 30 days)
Mohammad Mohammad
Mohammad Mohammad on 6 Jan 2024
Answered: Walter Roberson on 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 Comments
Rik
Rik on 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 on 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

Sign in to comment.

Answers (1)

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

Categories

Find more on Develop uifigure-Based Apps in Help Center and File Exchange

Tags

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!