Help for GUI initializing Problem
Show older comments
Dear friends
I made a GUI. At first, my gui worked correctly. Then, I decide to add a starting page where there is a pushbotomn to start main page. I fact, the pushbutton4 in the start page and will call uipanel10 in the main page for apprearing.
Here, there is a error when I want to start my gui by double click on ".fig" file as folowing:
"??? Attempt to reference field of non-structure array.
Error in ==> untitled1>pushbutton4_Callback at 6260
set(handles.uipanel10,'Visible','on');
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> untitled1 at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)untitled1('pushbutton4_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback"
but when i open ".m" or by "guide" command, the error doesn't appear.
Please help me.
Regards
1 Comment
Image Analyst
on 25 Aug 2019
You forgot ot attach your .m and .fig file, and any other files that need to be read in at run-time. We can look at it after that.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!