how to clear the contents of text fields by clicking push buttons in matlab gui?
Afficher commentaires plus anciens
how to clear the contents of text fields by clicking push buttons in matlab gui?
2 commentaires
Ana Garita
le 6 Juil 2016
So, did you solve this issue? Because I have the same question and I don't know yet how to figure out!
Image Analyst
le 7 Juil 2016
Even though he didn't accept my answer, that's the way to do it. Although with the new MATLAB there is a new way also
handles.edit1.String = '';
Réponses (1)
Image Analyst
le 10 Nov 2013
I'm assuming you know how to get the callback of the pushbutton by right clicking on it in GUIDE. Then, in the code, just do this:
set(handles.edit1, 'String', ''); % Clear edit field control with tag "edit1"
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!