Get value from field
Afficher commentaires plus anciens
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
Cris LaPierre
le 6 Jan 2024
Modifié(e) : Matt J
le 6 Jan 2024
Value is a property of the edit field. Access it using dot notation. You can see examples here: https://www.mathworks.com/help/matlab/ref/uieditfield.html
There are a couple ways of creating edit fields. What does your code look like?
Mohammad Mohammad
le 6 Jan 2024
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
le 6 Jan 2024
Réponses (1)
Walter Roberson
le 6 Jan 2024
0 votes
You would get that error if fig is a figure() instead of being a uifigure()
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!