Reset GUI Edit Text Field to Empty String
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 27 Okt. 2019
Using GUIDE or App Designer ?
Rachel McMurphy
am 27 Okt. 2019
Zuliana Nurfadlillah
am 6 Feb. 2020
how if i using GUIDE?
Walter Roberson
am 6 Feb. 2020
set( findobj(gcf, 'type', 'uicontrol', 'style', 'text'), 'string', '')
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!