IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_clssr_d.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref clssr_d
4 %> @sa @ref clssr_d
5 
6 %> @cond
7 function varargout = uip_clssr_d(varargin)
8 % Last Modified by GUIDE v2.5 22-Aug-2012 00:45:42
9 
10 % Begin initialization code - DO NOT EDIT
11 gui_Singleton = 1;
12 gui_State = struct('gui_Name', mfilename, ...
13  'gui_Singleton', gui_Singleton, ...
14  'gui_OpeningFcn', @uip_clssr_d_OpeningFcn, ...
15  'gui_OutputFcn', @uip_clssr_d_OutputFcn, ...
16  'gui_LayoutFcn', [] , ...
17  'gui_Callback', []);
18 if nargin && ischar(varargin{1})
19  gui_State.gui_Callback = str2func(varargin{1});
20 end
21 
22 if nargout
23  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
24 else
25  gui_mainfcn(gui_State, varargin{:});
26 end
27 % End initialization code - DO NOT EDIT
28 
29 
30 % --- Executes just before uip_clssr_d is made visible.
31 function uip_clssr_d_OpeningFcn(hObject, eventdata, handles, varargin)
32 handles.output.flag_ok = 0;
33 guidata(hObject, handles);
34 gui_set_position(hObject);
35 
36 
37 
38 % --- Outputs from this function are returned to the command clae.
39 function varargout = uip_clssr_d_OutputFcn(hObject, eventdata, handles)
40 try
41  uiwait(handles.figure1);
42  handles = guidata(hObject);
43  varargout{1} = handles.output;
44  delete(gcf);
45 catch
46  output.flag_ok = 0;
47  output.params = {};
48  varargout{1} = output;
49 end;
50 
51 
52 
53 function editReg_Callback(hObject, eventdata, handles)
54 
55 % --- Executes during object creation, after setting all properties.
56 function editReg_CreateFcn(hObject, eventdata, handles)
57 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
58  set(hObject,'BackgroundColor','white');
59 end
60 
61 
62 
63 % --- Executes on button press in pushbuttonCreate.
64 function pushbuttonCreate_Callback(hObject, eventdata, handles)
65 try
66  handles.output.params = {...
67  'type', sprintf('''%s''', fel(get(handles.popupmenuType, 'String'), get(handles.popupmenuType, 'Value'))), ...
68  'flag_use_priors', int2str(~get(handles.checkbox_flag_cb, 'Value')), ...
69  };
70  handles.output.flag_ok = 1;
71  guidata(hObject, handles);
72  uiresume();
73 catch ME
74  irerrordlg(ME.message, 'Cannot continue');
75 
76 end;
77 
78 
79 
80 
81 
82 
83 function popupmenuType_Callback(hObject, eventdata, handles)
84 function popupmenuType_CreateFcn(hObject, eventdata, handles)
85 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
86  set(hObject,'BackgroundColor','white');
87 end
88 function checkbox_flag_cb_Callback(hObject, eventdata, handles)
89 %>@endcond
Linear and Quadratic discriminant.
Definition: clssr_d.m:9
function fel(in c, in n)
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)