Get value from field

2 次查看(过去 30 天)
Mohammad Mohammad
I want to create an entryfield and read the numeric value in it. Icreated the field but cant get the number from it.
  4 个评论
Rik
Rik 2024-1-6
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
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

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Develop uifigure-Based Apps 的更多信息

标签

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by