Reset GUI Edit Text Field to Empty String
显示 更早的评论
I have a reset button on my app, and 5 edit field (text) for various inputs. When pressing the reset button, it's supposed to clear the 5 text boxes to empty strings. I've tried other suggestions from other questions (like using 'set' and 'findobj') but none of them have worked. My professor said to create a string first, then set it to empty with our code, and test it with 'isempty' but he gave no further explanation.
4 个评论
Walter Roberson
2019-10-27
Using GUIDE or App Designer ?
Rachel McMurphy
2019-10-27
Zuliana Nurfadlillah
2020-2-6
how if i using GUIDE?
Walter Roberson
2020-2-6
set( findobj(gcf, 'type', 'uicontrol', 'style', 'text'), 'string', '')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!