|
楼主 |
发表于 2007-5-20 02:10
|
显示全部楼层
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)
i=1;
setappdata(handles.pushbutton1,'A',i);
set(handles.h,'String','0');
set(handles.i,'String','0');
set(handles.j,'String','0');
这是一个按纽的CALLBACK属性,h,i,j分别是三个文本的TAG 在运行的时候 出现这样的错误
??? Reference to non-existent field 'h'.
Error in ==> biyesheji>pushbutton12_Callback at 218
set(handles.h,'String',X(1));
Error in ==> gui_mainfcn at 75
feval(varargin{:});
Error in ==> biyesheji at 44
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback.
[ 本帖最后由 eight 于 2007-5-20 22:56 编辑 ] |
|