Attempt to reference field of non-structure array
이전 댓글 표시
I am using GUIDE to create a nifty tool. Originally I would open the ".fig" file in GUIDE, as you right-click it. Then run the program from there. Today I decided to 'OPEN' it directly when I right-click the ".fig" file. Here is the error:
??? Attempt to reference field of non-structure array.
Error in ==> Cable_Sizing_Rev3>choose_resistance_data_source_popup_Callback at 1569
relevant_handles = [ handles.resistivity_edit, handles.resistivity_text, handles.unit_resistivity_text, ...
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> Cable_Sizing_Rev3 at 53
gui_mainfcn(gui_State, varargin{:});
Error in ==>
@(hObject,eventdata)Cable_Sizing_Rev3('choose_resistance_data_source_popup_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
I have checked other soluctions and it didn't quite help solve the problem.
채택된 답변
추가 답변 (1개)
Matt J
2014년 1월 8일
1 개 추천
Doesn't sound like a problem. The initial way you were running the GUI is the right one. You can also run the mfile that GUIDE produces to launch the GUI.
댓글 수: 6
tuyen
2014년 1월 9일
tuyen
2014년 1월 9일
Are you sure the above errors are generated immediately just by opening the .fig? Or, is it possible that you opened the .fig and then started pressing buttons and uicontrols? I can imagine the later triggering the errors you see. Your callbacks would then be launched without the gui's data first being properly initialized by your OpeningFcn.
tuyen
2014년 1월 14일
tuyen
2014년 1월 14일
카테고리
도움말 센터 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!