필터 지우기
필터 지우기

undefined function or variable in my GUIDE gui code!

조회 수: 2 (최근 30일)
Milad Zarei
Milad Zarei 2020년 5월 11일
댓글: Milad Zarei 2020년 5월 11일
when I run the code, I get the following error. I have attached the m file and the fig file as well. I did not write these codes but I need to debug it. Do you have any ideas what goes wrong?
Undefined function or variable 'Angle_B2_CreateFcn'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in pic_display (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pic_display('Angle_B2_CreateFcn',hObject,eventdata,guidata(hObject))
Error using Meary's Angle
Error: Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters,
or other syntax error. To construct matrices, use brackets instead of parentheses.
Undefined function or variable 'Angle_B2_DeleteFcn'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in pic_display (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pic_display('Angle_B2_DeleteFcn',hObject,eventdata,guidata(hObject))
Error using closereq (line 18)
Error while evaluating UIControl DeleteFcn.

답변 (1개)

Image Analyst
Image Analyst 2020년 5월 11일
Since you didn't write it, I can say this code is bad. When I try to run it, it hits the line
X_AP = evalin('base','X_AP');
and then throws an error, followed by a bunch of similar errors where it tried to read in X_AP from the base workspace. I don't think most good MATLAB programmers would use evalin(). To get this code to work, you'll have to supply us with the code that loaded all the various X_* variables into the base workspace.
  댓글 수: 8
Milad Zarei
Milad Zarei 2020년 5월 11일
it can be anything, the goal is to measure some angles on those images and save the number into that Scores file.
Milad Zarei
Milad Zarei 2020년 5월 11일
I figured that part out. There was no CreateFcn for that variable, so I created that. But now I have another error when I push the Save bottun. I went over the code, there is not even one kind of this at all.
Undefined function or variable 'Angle_B2_DeleteFcn'.
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in pic_display (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pic_display('Angle_B2_DeleteFcn',hObject,eventdata,guidata(hObject))
Error using closereq (line 18)
Error while evaluating UIControl DeleteFcn.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by