Get value from field

조회 수: 7 (최근 30일)
Mohammad Mohammad
Mohammad Mohammad 2024년 1월 6일
답변: Walter Roberson 2024년 1월 6일
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
Mohammad Mohammad 2024년 1월 6일
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에서 Graphics Objects에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by