Error message after changing the string in GUI

I was trying to modify the GUI design of a software. At first, I just modified a string (deleted a word from its original text) on the existing GUI figure (.fig) and saved the figure. Without any other changes, I got a huge list of error messages when I run this GUI figure which contains the modified string. The error messages are:
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel6_ResizeFcn (line 1381) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel6_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel3_ResizeFcn (line 1351) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel3_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Struct contents reference from a non-struct array object.
Error in OMCE_gen>uipanel1_ResizeFcn (line 1321) genpos = get(handles.figure_gen,'Position');
Error in gui_mainfcn (line 95) feval(varargin{:});
Error in OMCE_gen (line 72) gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)OMCE_gen('uipanel1_ResizeFcn',hObject,eventdata,guidata(hObject))
Error using matlab.graphics.internal.figfile.FigFile/read (line 31) Error while evaluating Panel SizeChangedFcn
Could anybody explain why these error occurs and how I should solve this problem (get rid of them)? Thank you!

답변 (1개)

Adam
Adam 2017년 3월 6일

0 개 추천

Use
dbstop if error
and take a look at 'handles'. You appear to have lost the handles structure or replaced it with something else that is not a struct to get an error like that.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

2017년 3월 6일

답변:

2017년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by