From: Eugene on
Hi, I wrote a simple GUI with GUIDE, and it worked until I closed MATLAB. Now it gives me a "??? Attempt to reference field of non-structure array." error. I found that this can be caused by using GUIDATA more than once in a GUIDE-generated GUI, and that this was a bug in version 7.0

I am using Matlab 7.6.0 and here is the error in detail:

"??? Attempt to reference field of non-structure array.

Error in ==> drop_profile_GUI_12_04_1234>directory_pushbutton_Callback at 88
set(handles.directory_edit,'String',directory) % display image folder's path in directory_edit

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> drop_profile_GUI_12_04_1234 at 42
gui_mainfcn(gui_State, varargin{:});

Error in ==> guidemfile>@(hObject,eventdata)drop_profile_GUI_12_04_1234('directory_pushbutton_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback "
From: Eugene on
I resaved the GUI using GUIDE under a different name and the problem went away.