Help with edit text GUI
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Ben11
2014-8-25
At the beginning of this button's callback, use something like this:
set(handles.edit3,'String','')
which displays an empty string
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!