5 %>@image html Screenshot-uip_pre_bc_poly.png
11 %> <b>Dataset with background (contaminant) spectra</b> - see
pre_bc_poly::contaminant_data
13 %> <b>Index(es) of background spectrum(spectra) in dataset</b> - see
pre_bc_poly::contaminant_idxs
18 function varargout = blockuip_fsel_fixed(varargin)
19 % Begin initialization code - DO NOT EDIT
21 gui_State = struct('gui_Name', mfilename, ...
22 'gui_Singleton', gui_Singleton, ...
23 'gui_OpeningFcn', @blockuip_fsel_fixed_OpeningFcn, ...
24 'gui_OutputFcn', @blockuip_fsel_fixed_OutputFcn, ...
25 'gui_LayoutFcn', [] , ...
27 if nargin && ischar(varargin{1})
28 gui_State.gui_Callback = str2func(varargin{1});
32 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
34 gui_mainfcn(gui_State, varargin{:});
36 % End initialization code - DO NOT EDIT
39 % --- Executes just before blockuip_fsel_fixed is made visible.
40 function blockuip_fsel_fixed_OpeningFcn(hObject, eventdata, handles, varargin)
41 handles.output.flag_ok = 0;
42 guidata(hObject, handles);
48 % --- Outputs from this function are returned to the command clae.
49 function varargout = blockuip_fsel_fixed_OutputFcn(hObject, eventdata, handles)
51 uiwait(handles.figure1);
52 handles = guidata(hObject);
53 varargout{1} = handles.output;
57 varargout{1} = output;
61 %###################################################
62 %###################################################
65 function ds_refresh(handles)
66 vars = evalin('base', 'who(''ds*'')');
68 vars = ['(None)' vars'];
72 set(handles.popupmenuData,
'String', vars);
75 %###################################################
76 %###################################################
79 function editReg_Callback(hObject, eventdata, handles)
80 % hObject handle to editReg (see GCBO)
81 % eventdata reserved - to be defined in a future version of MATLAB
82 % handles structure with handles and user data (see GUIDATA)
84 % Hints:
get(hObject,
'String') returns contents of editReg
as text
85 % str2double(
get(hObject,
'String')) returns contents of editReg
as a
double
88 % --- Executes during
object creation, after setting all properties.
89 function editReg_CreateFcn(hObject, eventdata, handles)
90 % hObject handle to editReg (see GCBO)
91 % eventdata reserved - to be defined in a future version of MATLAB
92 % handles empty - handles not created until after all CreateFcns called
94 % Hint: edit controls usually have a white background on Windows.
95 % See ISPC and COMPUTER.
96 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
97 set(hObject,'BackgroundColor','white');
102 % --- Executes on button press in pushbuttonOk.
103 function pushbuttonOk_Callback(hObject, eventdata, handles)
104 % hObject handle to pushbuttonOk (see GCBO)
105 % eventdata reserved - to be defined in a future version of MATLAB
106 % handles structure with handles and user data (see GUIDATA)
107 a = get(handles.popupmenuData, 'String');
109 ds_name = a{
get(handles.popupmenuData,
'Value')};
110 if strcmp(ds_name,
'(None)')
115 handles.output.params = {...
116 'order', num2str(eval(
get(handles.edit_order,
'String'))), ...
117 'epsilon', num2str(eval(
get(handles.edit_epsilon,
'String'))), ...
118 'contaminant_data', ds_name, ...
119 'contaminant_idxs', mat2str(eval(
get(handles.editIdxs,
'String'))) ...
121 handles.output.flag_ok = 1;
122 guidata(hObject, handles);
127 function editKnots_Callback(hObject, eventdata, handles)
128 % hObject handle to editKnots (see GCBO)
129 % eventdata reserved - to be defined in a future version of MATLAB
130 % handles structure with handles and user data (see GUIDATA)
132 % Hints:
get(hObject,
'String') returns contents of editKnots
as text
133 % str2double(
get(hObject,
'String')) returns contents of editKnots
as a
double
136 % --- Executes during
object creation, after setting all properties.
137 function editKnots_CreateFcn(hObject, eventdata, handles)
138 % hObject handle to editKnots (see GCBO)
139 % eventdata reserved - to be defined in a future version of MATLAB
140 % handles empty - handles not created until after all CreateFcns called
142 % Hint: edit controls usually have a white background on Windows.
143 % See ISPC and COMPUTER.
144 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
145 set(hObject,'BackgroundColor','white');
150 function editHelp_Callback(hObject, eventdata, handles)
151 % hObject handle to editHelp (see GCBO)
152 % eventdata reserved - to be defined in a future version of MATLAB
153 % handles structure with handles and user data (see GUIDATA)
155 % Hints: get(hObject,'String') returns contents of editHelp
as text
156 % str2double(get(hObject,'String')) returns contents of editHelp
as a
double
159 % --- Executes during
object creation, after setting all properties.
160 function editHelp_CreateFcn(hObject, eventdata, handles)
161 % hObject handle to editHelp (see GCBO)
162 % eventdata reserved - to be defined in a future version of MATLAB
163 % handles empty - handles not created until after all CreateFcns called
165 % Hint: edit controls usually have a white background on Windows.
166 % See ISPC and COMPUTER.
167 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
168 set(hObject,'BackgroundColor','white');
173 function edit_order_Callback(hObject, eventdata, handles)
174 % hObject handle to edit_order (see GCBO)
175 % eventdata reserved - to be defined in a future version of MATLAB
176 % handles structure with handles and user data (see GUIDATA)
178 % Hints: get(hObject,'String') returns contents of edit_order
as text
179 % str2double(get(hObject,'String')) returns contents of edit_order
as a
double
182 % --- Executes during
object creation, after setting all properties.
183 function edit_order_CreateFcn(hObject, eventdata, handles)
184 % hObject handle to edit_order (see GCBO)
185 % eventdata reserved - to be defined in a future version of MATLAB
186 % handles empty - handles not created until after all CreateFcns called
188 % Hint: edit controls usually have a white background on Windows.
189 % See ISPC and COMPUTER.
190 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
191 set(hObject,'BackgroundColor','white');
196 function edit_epsilon_Callback(hObject, eventdata, handles)
197 % hObject handle to edit_epsilon (see GCBO)
198 % eventdata reserved - to be defined in a future version of MATLAB
199 % handles structure with handles and user data (see GUIDATA)
201 % Hints: get(hObject,'String') returns contents of edit_epsilon
as text
202 % str2double(get(hObject,'String')) returns contents of edit_epsilon
as a
double
205 % --- Executes during
object creation, after setting all properties.
206 function edit_epsilon_CreateFcn(hObject, eventdata, handles)
207 % hObject handle to edit_epsilon (see GCBO)
208 % eventdata reserved - to be defined in a future version of MATLAB
209 % handles empty - handles not created until after all CreateFcns called
211 % Hint: edit controls usually have a white background on Windows.
212 % See ISPC and COMPUTER.
213 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
214 set(hObject,'BackgroundColor','white');
219 function edit_no_iterations_Callback(hObject, eventdata, handles)
220 % hObject handle to edit_no_iterations (see GCBO)
221 % eventdata reserved - to be defined in a future version of MATLAB
222 % handles structure with handles and user data (see GUIDATA)
224 % Hints: get(hObject,'String') returns contents of edit_no_iterations
as text
225 % str2double(get(hObject,'String')) returns contents of edit_no_iterations
as a
double
228 % --- Executes during
object creation, after setting all properties.
229 function edit_no_iterations_CreateFcn(hObject, eventdata, handles)
230 % hObject handle to edit_no_iterations (see GCBO)
231 % eventdata reserved - to be defined in a future version of MATLAB
232 % handles empty - handles not created until after all CreateFcns called
234 % Hint: edit controls usually have a white background on Windows.
235 % See ISPC and COMPUTER.
236 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
237 set(hObject,'BackgroundColor','white');
241 % --- Executes on selection change in popupmenuData.
242 function popupmenuData_Callback(hObject, eventdata, handles)
243 % hObject handle to popupmenuData (see GCBO)
244 % eventdata reserved - to be defined in a future version of MATLAB
245 % handles structure with handles and user data (see GUIDATA)
247 % Hints: contents = get(hObject,'String') returns popupmenuData contents
as cell array
248 % contents{
get(hObject,
'Value')} returns selected item from popupmenuData
251 % --- Executes during
object creation, after setting all properties.
252 function popupmenuData_CreateFcn(hObject, eventdata, handles)
253 % hObject handle to popupmenuData (see GCBO)
254 % eventdata reserved - to be defined in a future version of MATLAB
255 % handles empty - handles not created until after all CreateFcns called
257 % Hint: popupmenu controls usually have a white background on Windows.
258 % See ISPC and COMPUTER.
259 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
260 set(hObject,'BackgroundColor','white');
265 function editIdxs_Callback(hObject, eventdata, handles)
266 % hObject handle to editIdxs (see GCBO)
267 % eventdata reserved - to be defined in a future version of MATLAB
268 % handles structure with handles and user data (see GUIDATA)
270 % Hints: get(hObject,'String') returns contents of editIdxs
as text
271 % str2double(get(hObject,'String')) returns contents of editIdxs
as a
double
274 % --- Executes during
object creation, after setting all properties.
275 function editIdxs_CreateFcn(hObject, eventdata, handles)
276 % hObject handle to editIdxs (see GCBO)
277 % eventdata reserved - to be defined in a future version of MATLAB
278 % handles empty - handles not created until after all CreateFcns called
280 % Hint: edit controls usually have a white background on Windows.
281 % See ISPC and COMPUTER.
282 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
283 set(hObject,'BackgroundColor','white');
Property order
=5. See bc_poly.m
function gui_set_position(in hObject)
Polynomial Baseline Correction.
Analysis Session (AS) base class.
Property epsilon
=[] (auto). See bc_poly.m