标题: Matlab GUI 句柄的问题 [打印本页] 作者: 何易 时间: 2013-5-24 16:21 标题: Matlab GUI 句柄的问题 function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)dd1('2');hf=figure('Name','addds');s=str2double(get(handles.edit1,'String'));global d;ha=uitable(hf,'NumColumns',2,'NumRows',s);hunn=uicontrol(hf,'Style','pushbutton','String','31231','Callback','d=get(ha,''Data'')');disp(d);Undefined function or variable 'ha'.Error while evaluating uicontrol Callbackhunn无法识别ha?怎么样该才好?