GUI + Reference to non-existent field
이전 댓글 표시
Dear All,
I'm new to Matlab GUI. I'm getting following error when I use GUIDE. "Reference to non-existent field 'axes5'.
Error in Filname>Filname_OpeningFcn(line84)
axes(handles.axes5);
Error in mainfcn(line221)
feval(gui_State.gui_OpeningFcn,gui_hFigure,[],guidata(gui_hFigure),varagin{:});
Error in Filname(line42)
gui_mainfun(gui_State,varagin{:});
Error in guidefunc>layoutActivate(line 1158)
feval(fcn);
Eror in guidefunc(line 13)
varagout=layoutActivate(varagin{:});"
Can anyone suggest
댓글 수: 4
Azzi Abdelmalek
2013년 3월 7일
Post the line code causing the error
Amol Khalate
2013년 3월 8일
편집: Amol Khalate
2013년 3월 8일
Walter Roberson
2013년 3월 8일
Wouldn't it be better to postpone the imshow('oce-logo.jpg'); until the open function for axes5 ?
Amol Khalate
2013년 3월 8일
답변 (1개)
Image Analyst
2013년 3월 8일
0 개 추천
You don't need to worry about if there are some variables with the same name in a workspace prior to opening the GUI. They are in a different workspace and will not interfere. Each function has its own local, completely separate set of variables. When you did clear all you blew away your handles structure. Don't do that - if there are variables hanging around in the "base" workspace, it will not affect variables in your functions.
카테고리
도움말 센터 및 File Exchange에서 Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!