关于GUI中按钮的回调函数出错
GUI在运行一个按钮后,程序已经得到Res ResN Rep_Nat Rep_Gra Rep_Lean的值,现在想把这几个字符串返回给句柄uitable#,这样就可是在GUI并列菜单的输出窗口以表格的形式分别显示Res ResN Rep_Nat Rep_Gra Rep_Lean的值function togglebutton3_Callback(hObject, eventdata, handles)
% hObject handle to togglebutton3 (see GCBO)
global Res ResN Rep_Nat Rep_Gra Rep_Lean
set(handles.uitable1,'string',Res);
set(handles.uitable2,'string',ResN);
set(handles.uitable3,'string',Rep_Nat);
set(handles.uitable4,'string',Rep_Gra);
set(handles.uitable5,'string',Rep_Lean);
下文是出错报告:
Error in ==> fre01GUICIN>togglebutton3_Callback at 987
set(handles.uitable1,'string',Res);
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> fre01GUICIN at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> guidemfile>@(hObject,eventdata)fre01GUICIN('togglebutton3_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
求高手帮忙这个程序错在哪里?怎么改正?急用!!!多谢多谢!!!
页:
[1]