马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
function edit1_Callback(hObject, eventdata, handles) v_entry = get(h0bject,'String');v=str2double(v_entry); if isnan(v) v=50;set(h0bject,'string','50'); end handles.v=v;guidata(h0bject,handles);
当我运行GUI在edit1中填写数据时出现错误:
??? Undefined function or variable 'h0bject'.
Error in ==> formation>edit1_Callback at 124
v_entry = get(h0bject,'String');
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> formation at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)formation('edit1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback |