MATLAB: How can i reset axes and edittext

clear gui

I have a GUI that with 2 axes and 2 edittext. I would like to clear those with a button. how can i do this? thanks

Best Answer

So add a button and in its callback fucntion write code which clear axis and edittext field.
i.e.
cla(handles.axis1)
set(handles.Edit1,'String','')
Of course handles.axis1 and handles.Edit1 you have to change to your own handles.