MATLAB: How can we clear the values in the edit box of matlab GUI by pressing another button (say clear)

MATLABmatlab gui

How can we clear the values in the edit box of matlab GUI by pressing another button (say clear)

Best Answer

set(handles.edit1, 'String', ''); %example