What causes error for referencing non-structure array in GUI ?
显示 更早的评论
When I try to run my GUI I get this error, I've checked the tags but I don't know what could be causing it or what this error means?
Thanks in advanced
Attempt to reference field of non-structure array.
Error in tile_simulator>pushbutton1_CreateFcn (line 156)
axes(handles.axes1);
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in tile_simulator (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)tile_simulator('pushbutton1_CreateFcn',hObject,eventdata,guidata(hObject))
Error using struct2handle
Error while evaluating uicontrol CreateFcn
回答(1 个)
Walter Roberson
2013-4-17
0 个投票
I suspect that if you check, in that particular circumstance, handles is [] (empty)
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!