IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_sigwindow.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref pre_sigwindow
4 %>
5 %>@image html Screenshot-uip_pre_sigwindow.png
6 %>
7 %> <b>x-axis range</b> - see pre_sigwindow::range
8 %>
9 %> <b>x-axis width</b> - see pre_sigwindow::width
10 %>
11 %> @sa pre_sigwindow
12 
13 %>@cond
14 function varargout = uip_pre_sigwindow(varargin)
15 % Begin initialization code - DO NOT EDIT
16 gui_Singleton = 1;
17 gui_State = struct('gui_Name', mfilename, ...
18  'gui_Singleton', gui_Singleton, ...
19  'gui_OpeningFcn', @uip_pre_sigwindow_OpeningFcn, ...
20  'gui_OutputFcn', @uip_pre_sigwindow_OutputFcn, ...
21  'gui_LayoutFcn', [] , ...
22  'gui_Callback', []);
23 if nargin && ischar(varargin{1})
24  gui_State.gui_Callback = str2func(varargin{1});
25 end
26 
27 if nargout
28  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
29 else
30  gui_mainfcn(gui_State, varargin{:});
31 end
32 % End initialization code - DO NOT EDIT
33 
34 
35 % --- Executes just before uip_pre_sigwindow is made visible.
36 function uip_pre_sigwindow_OpeningFcn(hObject, eventdata, handles, varargin)
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
39 gui_set_position(hObject);
40 
41 
42 % --- Outputs from this function are returned to the command clae.
43 function varargout = uip_pre_sigwindow_OutputFcn(hObject, eventdata, handles)
44 try
45  uiwait(handles.figure1);
46  handles = guidata(hObject);
47  varargout{1} = handles.output;
48  delete(gcf);
49 catch
50  output.flag_ok = 0;
51  varargout{1} = output;
52 end;
53 
54 % --- Executes during object creation, after setting all properties.
55 function editReg_CreateFcn(hObject, eventdata, handles)
56 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
57  set(hObject,'BackgroundColor','white');
58 end
59 
60 
61 
62 % --- Executes on button press in pushbuttonOk.
63 function pushbuttonOk_Callback(hObject, eventdata, handles)
64 handles.output.params = {...
65 'range', mat2str(eval(get(handles.edit_range, 'String'))), ...
66 'width', num2str(eval(get(handles.edit_width, 'String'))) ...
67 };
68 handles.output.flag_ok = 1;
69 guidata(hObject, handles);
70 uiresume();
71 
72 function edit_range_Callback(hObject, eventdata, handles)
73 
74 % --- Executes during object creation, after setting all properties.
75 function edit_range_CreateFcn(hObject, eventdata, handles)
76 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
77  set(hObject,'BackgroundColor','white');
78 end
79 
80 function edit_width_Callback(hObject, eventdata, handles)
81 
82 % --- Executes during object creation, after setting all properties.
83 function edit_width_CreateFcn(hObject, eventdata, handles)
84 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
85  set(hObject,'BackgroundColor','white');
86 end
87 %>@endcond
Property range
beginning and terminus of window, given in data.fea_x units
Definition: pre_sigwindow.m:18
function gui_set_position(in hObject)
Applies sigmoid window to curves.
Definition: pre_sigwindow.m:12
Property width
length for sigmoid to go from 0.5 to .995 or .005 given in data.fea_x units
Definition: pre_sigwindow.m:21