nanboforever
2008-06-04, 20:41
各位高手:
我在将GUI文件生成EXE文件时能通过编译,但碰到了以下的问题,可能是关联失效,但不知道该如何解决,请帮忙救命啊
运行EXE文件时出现的DOS窗口有如下信息:
An error occurred in the callback : TESTI_O<'Output_CreateFcn',gcbo,[],guidata<gcbo>>
The error message caught was : Reference to unknown function or variable 'TESTI_O' while evaluating expression.
对应控件程序为(是程序自动生成的,我没有改动任何地方):
function Output_CreateFcn(hObject, eventdata, handles)
% hObject handle to Output (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
不知道如何解决,请大侠们帮忙啊,小弟先行谢过了
我在将GUI文件生成EXE文件时能通过编译,但碰到了以下的问题,可能是关联失效,但不知道该如何解决,请帮忙救命啊
运行EXE文件时出现的DOS窗口有如下信息:
An error occurred in the callback : TESTI_O<'Output_CreateFcn',gcbo,[],guidata<gcbo>>
The error message caught was : Reference to unknown function or variable 'TESTI_O' while evaluating expression.
对应控件程序为(是程序自动生成的,我没有改动任何地方):
function Output_CreateFcn(hObject, eventdata, handles)
% hObject handle to Output (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
不知道如何解决,请大侠们帮忙啊,小弟先行谢过了