📄 modelparam.m
字号:
function varargout = modelParam(varargin)
% MODELPARAM M-file for modelParam.fig
% MODELPARAM, by itself, creates a new MODELPARAM or raises the existing
% singleton*.
%
% H = MODELPARAM returns the handle to a new MODELPARAM or the handle to
% the existing singleton*.
%
% MODELPARAM('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in MODELPARAM.M with the given input arguments.
%
% MODELPARAM('Property','Value',...) creates a new MODELPARAM or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before modelParam_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to modelParam_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Copyright 2002-2003 The MathWorks, Inc.
% Edit the above text to modify the response to help modelParam
% Last Modified by GUIDE v2.5 18-May-2005 16:20:57
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @modelParam_OpeningFcn, ...
'gui_OutputFcn', @modelParam_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before modelParam is made visible.
function modelParam_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to modelParam (see VARARGIN)
% Choose default command line output for modelParam
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes modelParam wait for user response (see UIRESUME)
% uiwait(handles.figure1);
Mparam=evalin('base','Mparam');
set(handles.editFRC, 'String',num2str(Mparam.FAC_RADIT_COVER));
set(handles.editRTR, 'String',num2str(Mparam.RADIAT_TRANS_ROLL));
set(handles.editRCT, 'String',num2str(Mparam.RADIAT_COEFF_THICK));
set(handles.editRCFT1,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(1)));
set(handles.editRCFT2,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(2)));
set(handles.editRCFT3,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(3)));
set(handles.editRCFT4,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(4)));
set(handles.editRCFT5,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(5)));
set(handles.editRCFT6,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(6)));
set(handles.editRCFT7,'String',num2str(Mparam.RADIT_COEFF_FM_THICK(7)));
% --- Outputs from this function are returned to the command line.
function varargout = modelParam_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.
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)
function editFRC_Callback(hObject, eventdata, handles)
% hObject handle to editFRC (see GCBO)
% 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 editFRC as text
% str2double(get(hObject,'String')) returns contents of editFRC as a double
% --- Executes during object creation, after setting all properties.
function editFRC_CreateFcn(hObject, eventdata, handles)
% hObject handle to editFRC (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 editRTR_Callback(hObject, eventdata, handles)
% hObject handle to editRTR (see GCBO)
% 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 editRTR as text
% str2double(get(hObject,'String')) returns contents of editRTR as a double
% --- Executes during object creation, after setting all properties.
function editRTR_CreateFcn(hObject, eventdata, handles)
% hObject handle to editRTR (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 edit4_Callback(hObject, eventdata, handles)
% hObject handle to edit4 (see GCBO)
% 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 edit4 as text
% str2double(get(hObject,'String')) returns contents of edit4 as a double
% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (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 editRCFT1_Callback(hObject, eventdata, handles)
% hObject handle to editRCFT1 (see GCBO)
% 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 editRCFT1 as text
% str2double(get(hObject,'String')) returns contents of editRCFT1 as a double
% --- Executes during object creation, after setting all properties.
function editRCFT1_CreateFcn(hObject, eventdata, handles)
% hObject handle to editRCFT1 (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 edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% 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 edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (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 edit6_Callback(hObject, eventdata, handles)
% hObject handle to edit6 (see GCBO)
% 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 edit6 as text
% str2double(get(hObject,'String')) returns contents of edit6 as a double
% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit6 (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 edit7_Callback(hObject, eventdata, handles)
% hObject handle to edit7 (see GCBO)
% 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 edit7 as text
% str2double(get(hObject,'String')) returns contents of edit7 as a double
% --- Executes during object creation, after setting all properties.
function edit7_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit7 (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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -