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?

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{:});

 Accepted 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.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!