Borrar filtros
Borrar filtros

Get value from field

2 visualizaciones (últimos 30 días)
Mohammad Mohammad
Mohammad Mohammad el 6 de En. de 2024
Respondida: Walter Roberson el 6 de En. de 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 comentarios
Rik
Rik el 6 de En. de 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 el 6 de En. de 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

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre Develop uifigure-Based Apps en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by