📄 algrithem_database.m
字号:
function varargout = algrithem_database(varargin)
% ALGRITHEM_DATABASE M-file for algrithem_database.fig
% ALGRITHEM_DATABASE, by itself, creates a new ALGRITHEM_DATABASE or raises the existing
% singleton*.
%
% H = ALGRITHEM_DATABASE returns the handle to a new ALGRITHEM_DATABASE or the handle to
% the existing singleton*.
%
% ALGRITHEM_DATABASE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ALGRITHEM_DATABASE.M with the given input arguments.
%
% ALGRITHEM_DATABASE('Property','Value',...) creates a new ALGRITHEM_DATABASE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before algrithem_database_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to algrithem_database_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 algrithem_database
% Last Modified by GUIDE v2.5 15-May-2006 00:06:21
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @algrithem_database_OpeningFcn, ...
'gui_OutputFcn', @algrithem_database_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 algrithem_database is made visible.
function algrithem_database_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 algrithem_database (see VARARGIN)
% Choose default command line output for algrithem_database
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
initialize_gui(hObject, handles, false); %初始化界面
% UIWAIT makes algrithem_database wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = algrithem_database_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;
function array_number_Callback(hObject, eventdata, handles)
% hObject handle to array_number (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 array_number as text
% str2double(get(hObject,'String')) returns contents of array_number as a double
array_number = str2double(get(hObject, 'String'));
% if isnan(array_number)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new array_number value
handles.metricdata.array_number = array_number;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function array_number_CreateFcn(hObject, eventdata, handles)
% hObject handle to array_number (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function work_frequency_Callback(hObject, eventdata, handles)
% hObject handle to work_frequency (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 work_frequency as text
% str2double(get(hObject,'String')) returns contents of work_frequency as a double
work_frequency = str2double(get(hObject, 'String'));
% if isnan(work_frequency)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.work_frequency = work_frequency;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function work_frequency_CreateFcn(hObject, eventdata, handles)
% hObject handle to work_frequency (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function array_distance_Callback(hObject, eventdata, handles)
% hObject handle to array_distance (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 array_distance as text
% str2double(get(hObject,'String')) returns contents of array_distance as a double
array_distance = str2double(get(hObject, 'String'));
% if isnan(array_distance)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.array_distance = array_distance;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function array_distance_CreateFcn(hObject, eventdata, handles)
% hObject handle to array_distance (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function work_wavelength_Callback(hObject, eventdata, handles)
% hObject handle to work_wavelength (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 work_wavelength as text
% str2double(get(hObject,'String')) returns contents of work_wavelength as a double
work_wavelength = str2double(get(hObject, 'String'));
% if isnan(work_wavelength)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.work_wavelength = work_wavelength;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function work_wavelength_CreateFcn(hObject, eventdata, handles)
% hObject handle to work_wavelength (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function SNR_Callback(hObject, eventdata, handles)
% hObject handle to SNR (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 SNR as text
% str2double(get(hObject,'String')) returns contents of SNR as a double
SNR = str2double(get(hObject, 'String'));
% if isnan(SNR)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.SNR = SNR;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function SNR_CreateFcn(hObject, eventdata, handles)
% hObject handle to SNR (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function JNR1_Callback(hObject, eventdata, handles)
% hObject handle to JNR1 (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 JNR1 as text
% str2double(get(hObject,'String')) returns contents of JNR1 as a double
JNR1 = str2double(get(hObject, 'String'));
% if isnan(JNR1)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.JNR1 = JNR1;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function JNR1_CreateFcn(hObject, eventdata, handles)
% hObject handle to JNR1 (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function JNR3_Callback(hObject, eventdata, handles)
% hObject handle to JNR3 (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 JNR3 as text
% str2double(get(hObject,'String')) returns contents of JNR3 as a double
JNR3 = str2double(get(hObject, 'String'));
% if isnan(JNR3)
% set(hObject, 'String', 0);
% errordlg('Input must be a number','Error');
% end
% Save the new volume value
handles.metricdata.JNR3 = JNR3;
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function JNR3_CreateFcn(hObject, eventdata, handles)
% hObject handle to JNR3 (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
usewhitebg = 1;
if usewhitebg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function JNR2_Callback(hObject, eventdata, handles)
% hObject handle to JNR2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -