5 %>@image html Screenshot-uip_pre_bc_asls.png
16 function varargout = blockuip_fsel_fixed(varargin)
17 % Begin initialization code - DO NOT EDIT
19 gui_State =
struct(
'gui_Name', mfilename, ...
20 'gui_Singleton', gui_Singleton, ...
21 'gui_OpeningFcn', @blockuip_fsel_fixed_OpeningFcn, ...
22 'gui_OutputFcn', @blockuip_fsel_fixed_OutputFcn, ...
23 'gui_LayoutFcn', [] , ...
25 if nargin && ischar(varargin{1})
26 gui_State.gui_Callback = str2func(varargin{1});
30 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
32 gui_mainfcn(gui_State, varargin{:});
34 % End initialization code - DO NOT EDIT
37 % --- Executes just before blockuip_fsel_fixed is made visible.
38 function blockuip_fsel_fixed_OpeningFcn(hObject, eventdata, handles, varargin)
39 handles.output.flag_ok = 0;
40 guidata(hObject, handles);
44 % --- Outputs from this function are returned to the command clae.
45 function varargout = blockuip_fsel_fixed_OutputFcn(hObject, eventdata, handles)
47 uiwait(handles.figure1);
48 handles = guidata(hObject);
49 varargout{1} = handles.output;
53 varargout{1} = output;
58 function editReg_Callback(hObject, eventdata, handles)
59 % hObject handle to editReg (see GCBO)
60 % eventdata reserved - to be defined in a future version of MATLAB
61 % handles structure with handles and user data (see GUIDATA)
63 % Hints:
get(hObject,
'String') returns contents of editReg
as text
64 % str2double(
get(hObject,
'String')) returns contents of editReg
as a
double
67 % --- Executes during
object creation, after setting all properties.
68 function editReg_CreateFcn(hObject, eventdata, handles)
69 % hObject handle to editReg (see GCBO)
70 % eventdata reserved - to be defined in a future version of MATLAB
71 % handles empty - handles not created until after all CreateFcns called
73 % Hint: edit controls usually have a white background on Windows.
74 % See ISPC and COMPUTER.
75 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
76 set(hObject,'BackgroundColor','white');
81 % --- Executes on button press in pushbuttonOk.
82 function pushbuttonOk_Callback(hObject, eventdata, handles)
83 % hObject handle to pushbuttonOk (see GCBO)
84 % eventdata reserved - to be defined in a future version of MATLAB
85 % handles structure with handles and user data (see GUIDATA)
88 handles.output.params = {...
89 'p', num2str(eval(
get(handles.edit_p,
'String'))), ...
90 'lambda', num2str(eval(
get(handles.edit_lambda,
'String'))), ...
91 'no_iterations', int2str(eval(
get(handles.edit_no_iterations,
'String'))) ...
93 handles.output.flag_ok = 1;
94 guidata(hObject, handles);
99 function editKnots_Callback(hObject, eventdata, handles)
100 % hObject handle to editKnots (see GCBO)
101 % eventdata reserved - to be defined in a future version of MATLAB
102 % handles structure with handles and user data (see GUIDATA)
104 % Hints:
get(hObject,
'String') returns contents of editKnots
as text
105 % str2double(
get(hObject,
'String')) returns contents of editKnots
as a
double
108 % --- Executes during
object creation, after setting all properties.
109 function editKnots_CreateFcn(hObject, eventdata, handles)
110 % hObject handle to editKnots (see GCBO)
111 % eventdata reserved - to be defined in a future version of MATLAB
112 % handles empty - handles not created until after all CreateFcns called
114 % Hint: edit controls usually have a white background on Windows.
115 % See ISPC and COMPUTER.
116 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
117 set(hObject,'BackgroundColor','white');
122 function editHelp_Callback(hObject, eventdata, handles)
123 % hObject handle to editHelp (see GCBO)
124 % eventdata reserved - to be defined in a future version of MATLAB
125 % handles structure with handles and user data (see GUIDATA)
127 % Hints: get(hObject,'String') returns contents of editHelp
as text
128 % str2double(get(hObject,'String')) returns contents of editHelp
as a
double
131 % --- Executes during
object creation, after setting all properties.
132 function editHelp_CreateFcn(hObject, eventdata, handles)
133 % hObject handle to editHelp (see GCBO)
134 % eventdata reserved - to be defined in a future version of MATLAB
135 % handles empty - handles not created until after all CreateFcns called
137 % Hint: edit controls usually have a white background on Windows.
138 % See ISPC and COMPUTER.
139 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
140 set(hObject,'BackgroundColor','white');
145 function edit_p_Callback(hObject, eventdata, handles)
146 % hObject handle to edit_p (see GCBO)
147 % eventdata reserved - to be defined in a future version of MATLAB
148 % handles structure with handles and user data (see GUIDATA)
150 % Hints: get(hObject,'String') returns contents of edit_p
as text
151 % str2double(get(hObject,'String')) returns contents of edit_p
as a
double
154 % --- Executes during
object creation, after setting all properties.
155 function edit_p_CreateFcn(hObject, eventdata, handles)
156 % hObject handle to edit_p (see GCBO)
157 % eventdata reserved - to be defined in a future version of MATLAB
158 % handles empty - handles not created until after all CreateFcns called
160 % Hint: edit controls usually have a white background on Windows.
161 % See ISPC and COMPUTER.
162 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
163 set(hObject,'BackgroundColor','white');
168 function edit_lambda_Callback(hObject, eventdata, handles)
169 % hObject handle to edit_lambda (see GCBO)
170 % eventdata reserved - to be defined in a future version of MATLAB
171 % handles structure with handles and user data (see GUIDATA)
173 % Hints: get(hObject,'String') returns contents of edit_lambda
as text
174 % str2double(get(hObject,'String')) returns contents of edit_lambda
as a
double
177 % --- Executes during
object creation, after setting all properties.
178 function edit_lambda_CreateFcn(hObject, eventdata, handles)
179 % hObject handle to edit_lambda (see GCBO)
180 % eventdata reserved - to be defined in a future version of MATLAB
181 % handles empty - handles not created until after all CreateFcns called
183 % Hint: edit controls usually have a white background on Windows.
184 % See ISPC and COMPUTER.
185 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
186 set(hObject,'BackgroundColor','white');
191 function edit_no_iterations_Callback(hObject, eventdata, handles)
192 % hObject handle to edit_no_iterations (see GCBO)
193 % eventdata reserved - to be defined in a future version of MATLAB
194 % handles structure with handles and user data (see GUIDATA)
196 % Hints: get(hObject,'String') returns contents of edit_no_iterations
as text
197 % str2double(get(hObject,'String')) returns contents of edit_no_iterations
as a
double
200 % --- Executes during
object creation, after setting all properties.
201 function edit_no_iterations_CreateFcn(hObject, eventdata, handles)
202 % hObject handle to edit_no_iterations (see GCBO)
203 % eventdata reserved - to be defined in a future version of MATLAB
204 % handles empty - handles not created until after all CreateFcns called
206 % Hint: edit controls usually have a white background on Windows.
207 % See ISPC and COMPUTER.
208 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
209 set(hObject,'BackgroundColor','white');
Property lambda
=1e5. Recommended: 10^2 <= lambda <= 10^9
Property no_iterations
=10
Asymmetric Least-Squares Baseline Correction.
function gui_set_position(in hObject)
Analysis Session (AS) base class.
Property p
=0.001. Recommended: 0.001 <= p <= 0.1