MATLAB: How to clear the edit text automatically

gui

how can i clear the edit text automatically when i push button that i already set to clear the edit text.meaning that, when i push the button, edit text will be clear with word or value in the edit text.

Best Answer

In your button callback function
set(handles.edit1,'String','');
where edit1 is your edit text