Get value from field
이전 댓글 표시
I want to create an entryfield and read the numeric value in it. Icreated the field but cant get the number from it.
댓글 수: 4
Cris LaPierre
2024년 1월 6일
편집: Matt J
2024년 1월 6일
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
2024년 1월 6일
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
2024년 1월 6일
답변 (1개)
Walter Roberson
2024년 1월 6일
0 개 추천
You would get that error if fig is a figure() instead of being a uifigure()
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!