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 ?

 採用された回答

Ben11
Ben11 2014 年 8 月 25 日

0 投票

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

2 件のコメント

aurc89
aurc89 2014 年 8 月 25 日
Thanks !
Ben11
Ben11 2014 年 8 月 25 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

質問済み:

2014 年 8 月 25 日

コメント済み:

2014 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by