MATLAB: Reset button

guipush button

Welcome All…
I have GUI with multiple Edit( To Get User Input ).
I wish to ADD Reset Pushbutton in order to clear All input.
How I can do it ?

Best Answer

You will have to hard-code this functionality. You will need to create a pushbutton and then under that new pushbutton function you will have to use "set" to restore all your edit boxes back to blank space or a default value. I.e.,
set(handles.my_edit_box,'String','');
or
set(handles.my_edit_box,'String','some_default_value');