IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fcon_spline.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fcon_spline
4 %>
5 %>@image html Screenshot-uip_fcon_spline.png
6 %>
7 %> <b>Number of basis functions</b> - see fcon_spline::no_basis
8 %>
9 %> <b>Spline order</b> - see fcon_spline::order
10 %>
11 %> @sa fcon_spline
12 
13 %>@cond
14 function varargout = uip_fcon_spline(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_fcon_spline_OpeningFcn, ...
20  'gui_OutputFcn', @uip_fcon_spline_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_fcon_spline is made visible.
36 function uip_fcon_spline_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_fcon_spline_OutputFcn(hObject, eventdata, handles)
44 try
45  uiwait(handles.figure1);
46  handles = guidata(hObject);
47  varargout{1} = handles.output;
48  delete(gcf);
49 catch %#ok<*CTCH>
50  output.flag_ok = 0;
51  varargout{1} = output;
52 end;
53 
54 
55 
56 % --- Executes on button press in pushbuttonOk.
57 function pushbuttonOk_Callback(hObject, eventdata, handles) %#ok<*INUSL,*DEFNU>
58 % hObject handle to pushbuttonOk (see GCBO)
59 % eventdata reserved - to be defined in a future version of MATLAB
60 % handles structure with handles and user data (see GUIDATA)
61 
62 handles.output.params = {...
63 'no_basis', int2str(eval(get(handles.edit_no_basis, 'String'))), ...
64 'order', int2str(eval(get(handles.edit_order, 'String'))) ...
65 };
66 handles.output.flag_ok = 1;
67 guidata(hObject, handles);
68 uiresume();
69 
70 
71 
72 function edit_no_basis_Callback(hObject, eventdata, handles) %#ok<*INUSD>
73 function edit_no_basis_CreateFcn(hObject, eventdata, handles)
74 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
75  set(hObject,'BackgroundColor','white');
76 end
77 function edit_order_Callback(hObject, eventdata, handles)
78 function edit_order_CreateFcn(hObject, eventdata, handles)
79 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
80  set(hObject,'BackgroundColor','white');
81 end
82 %> @endcond
Property order
Splines order (default: 6) (see reference).
Definition: fcon_spline.m:22
B-Splines Decomposition.
Definition: fcon_spline.m:10
Property no_basis
Number of basis functions transformed dataset (default: 30).
Definition: fcon_spline.m:16
function gui_set_position(in hObject)