- The value is NaN, blank, or a complex number.
Clearing an edit field (numeric) and text area
조회 수: 7 (최근 30일)
이전 댓글 표시
Hey guys,
Just a quick question about how to clear a numeric edit field. Ive tried using the following code to clear both a numeric edit feild and text area. This code doesnt work as an error pops up saying the 'Value' must be double scalar

Thanks :)
댓글 수: 0
답변 (1개)
Cris LaPierre
2020년 5월 7일
A numeric edit field cannot be blank. You can read more about the value properties of this component here.
MATLAB rejects the value if:
댓글 수: 4
Cris LaPierre
2020년 5월 7일
Ah, putting it in quotes makes it text, resulting in the error message you were seeing.
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!