MATLAB: I am attempting to create a scientific calculator gui and continue to encounter the following errors. I have checked the .m what am I missing

gui help

Reference to non-existent field 'text1'.
Error in calc>calc_OpeningFcn (line 64) set(handles.text1,'String','0');
Error in gui_mainfcn (line 220) feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in calc (line 42) gui_mainfcn(gui_State, varargin{:});

Best Answer

You are using GUIDE but you do not have a graphics object whose Tag is 'text1'
Or you are generating handles.text1 dynamically but you did not use guidata() to save the handle after you generated it.