I am unable to get result while clicking on train button
Info
This question is closed. Reopen it to edit or answer.
Show older comments
??? Attempt to reference field of non-structure array.
Error in ==> gui>pushbutton1_Callback at 96
if get(handles.radiobutton1,'Value') == 1
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> gui at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
??? Attempt to reference field of non-structure array.
Error in ==> gui>pushbutton1_Callback at 96
if get(handles.radiobutton1,'Value') == 1
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> gui at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
??? Attempt to reference field of non-structure array.
Error in ==> gui>pushbutton1_Callback at 96
if get(handles.radiobutton1,'Value') == 1
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> gui at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
>>
--------now see my coding on line 96---------
if get(handles.radiobutton1,'Value') == 1
[data_1] = training_bays1;
end
if get(handles.radiobutton2,'Value') == 1
[data_1] = training_bays2;
end
if get(handles.radiobutton3,'Value') == 1
[data_1] = training_bays3;
end
Answers (1)
Image Analyst
on 12 May 2013
Apparently handles is corrupt. Set a breakpoint on this line:
if get(handles.radiobutton1,'Value') == 1
and when it stops there, type handles into the command line and see what it reports back. Chances are it's undefined or null, or doesn't have those members (radioButton1, etc.).
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!