![](https://csdnimg.cn/release/download_crawler_static/88339914/bg5.jpg)
基于 GA-BP 的非分光红外气体检测装置的温度修正软件 版本:V1.0
% Hints: get(hObject,'String') returns contents of diedai as text
% str2double(get(hObject,'String')) returns contents of diedai as a double
% --- Executes during object creation, after setting all properties.
function diedai_CreateFcn(hObject, eventdata, handles)
% hObject handle to diedai (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function zhongqun_Callback(hObject, eventdata, handles)
% hObject handle to zhongqun (see GCBO)
global zhongqun
zhongqun=str2double(get(hObject,'string'))
handles.zhongqun= zhongqun;
if isnan( zhongqun)
errordlg('You must enter a numeric value','Bad Input','modal')
end
guidata(hObject,handles);
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of zhongqun as text
% str2double(get(hObject,'String')) returns contents of zhongqun as a double
% --- Executes during object creation, after setting all properties.
function zhongqun_CreateFcn(hObject, eventdata, handles)
% hObject handle to zhongqun (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');