MATLAB Answers

Help with edit text GUI

조회 수: 8(최근 30일)
aurc89
aurc89 25 Aug 2014
댓글: Ben11 25 Aug 2014
Hi! I created a Matlab GUI , where an 'Edit text' command is placed. It is initially empty. At a certain point, when I load a number, it is visualized in this 'Edit text' box, with a command like this
set(handles.edit3,'String',num)
where 'num' is the variable associated to the number. Then, when I press another button, I want this Edit text box to be empty again . How can I set this instruction ?

  댓글 수: 0

로그인 to comment.

채택된 답변

Ben11
Ben11 25 Aug 2014
At the beginning of this button's callback, use something like this:
set(handles.edit3,'String','')
which displays an empty string

  댓글 수: 2

aurc89
aurc89 25 Aug 2014
Thanks !
Ben11
Ben11 25 Aug 2014
You're welcome!

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by