IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_norm.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file uip_pre_norm.m
3 %> @brief Properties Window for @ref pre_norm
4 %> @image html Screenshot-uip_pre_norm.png
5 %>
6 %> <b>Normalization type</b> - see normaliz.m, pre_norm::types
7 %>
8 %> <b>Feature indexes - see pre_norm::idxs_fea
9 %>
10 %> @sa pre_norm, normaliz.m
11 
12 %>@cond
13 function varargout = uip_pre_norm(varargin)
14 % Last Modified by GUIDE v2.5 04-Feb-2011 14:30:49
15 
16 % Begin initialization code - DO NOT EDIT
17 gui_Singleton = 1;
18 gui_State = struct('gui_Name', mfilename, ...
19  'gui_Singleton', gui_Singleton, ...
20  'gui_OpeningFcn', @uip_pre_norm_OpeningFcn, ...
21  'gui_OutputFcn', @uip_pre_norm_OutputFcn, ...
22  'gui_LayoutFcn', [] , ...
23  'gui_Callback', []);
24 if nargin && ischar(varargin{1})
25  gui_State.gui_Callback = str2func(varargin{1});
26 end
27 
28 if nargout
29  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
30 else
31  gui_mainfcn(gui_State, varargin{:});
32 end
33 % End initialization code - DO NOT EDIT
34 
35 % --- Executes just before uip_pre_norm is made visible.
36 function uip_pre_norm_OpeningFcn(hObject, eventdata, handles, varargin)
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
39 gui_set_position(hObject);
40 
41 % --- Outputs from this function are returned to the command clae.
42 function varargout = uip_pre_norm_OutputFcn(hObject, eventdata, handles)
43 try
44  uiwait(handles.figure1);
45  handles = guidata(hObject);
46  varargout{1} = handles.output;
47  delete(gcf);
48 catch
49  output.flag_ok = 0;
50  output.params = {};
51  varargout{1} = output;
52 end;
53 
54 
55 % --- Executes on button press in pushbuttonOk.
56 function pushbuttonOk_Callback(hObject, eventdata, handles)
57 try
58  types = 'vcna12sr';
59 
60  handles.output.params = {...
61  'types', ['''' types(get(handles.popupmenuType, 'Value')) ''''], ...
62  'idxs_fea', get(handles.editIdxs_fea, 'String') ...
63  };
64  handles.output.flag_ok = 1;
65  guidata(hObject, handles);
66  uiresume();
67 catch ME
68  irerrordlg(ME.message, 'Cannot continue');
69 
70 end;
71 
72 % --- Executes on selection change in popupmenuType.
73 function popupmenuType_Callback(hObject, eventdata, handles)
74 
75 % --- Executes during object creation, after setting all properties.
76 function popupmenuType_CreateFcn(hObject, eventdata, handles)
77 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
78  set(hObject,'BackgroundColor','white');
79 end
80 
81 function editIdxs_fea_Callback(hObject, eventdata, handles)
82 
83 % --- Executes during object creation, after setting all properties.
84 function editIdxs_fea_CreateFcn(hObject, eventdata, handles)
85 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
86  set(hObject,'BackgroundColor','white');
87 end
88 
89 %> @endcond
Property idxs_fea
See normaliz.m.
Definition: pre_norm_base.m:15
Property types
See normaliz.m.
Definition: pre_norm_base.m:12
function gui_set_position(in hObject)
Normalization - final class.
Definition: pre_norm.m:6
function irerrordlg(in errorstring, in dlgname)
function normaliz(in X, in x, in types, in idxs_fea)