IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fcon_resample.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fcon_resample
4 %>
5 %>@image html Screenshot-uip_fcon_resample.png
6 %>
7 %> <b>Number of variables after resampling</b> - see fcon_resample::no_fea
8 %>
9 %> @sa fcon_resample
10 
11 %>@cond
12 function varargout = uip_fcon_resample(varargin)
13 % Begin initialization code - DO NOT EDIT
14 gui_Singleton = 1;
15 gui_State = struct('gui_Name', mfilename, ...
16  'gui_Singleton', gui_Singleton, ...
17  'gui_OpeningFcn', @uip_fcon_resample_OpeningFcn, ...
18  'gui_OutputFcn', @uip_fcon_resample_OutputFcn, ...
19  'gui_LayoutFcn', [] , ...
20  'gui_Callback', []);
21 if nargin && ischar(varargin{1})
22  gui_State.gui_Callback = str2func(varargin{1});
23 end
24 
25 if nargout
26  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
27 else
28  gui_mainfcn(gui_State, varargin{:});
29 end
30 % End initialization code - DO NOT EDIT
31 
32 
33 % --- Executes just before uip_fcon_resample is made visible.
34 function uip_fcon_resample_OpeningFcn(hObject, eventdata, handles, varargin)
35 handles.output.flag_ok = 0;
36 guidata(hObject, handles);
37 gui_set_position(hObject);
38 
39 
40 % --- Outputs from this function are returned to the command clae.
41 function varargout = uip_fcon_resample_OutputFcn(hObject, eventdata, handles)
42 try
43  uiwait(handles.figure1);
44  handles = guidata(hObject);
45  varargout{1} = handles.output;
46  delete(gcf);
47 catch
48  output.flag_ok = 0;
49  varargout{1} = output;
50 end;
51 
52 
53 % --- Executes on button press in pushbuttonOk.
54 function pushbuttonOk_Callback(hObject, eventdata, handles)
55 % hObject handle to pushbuttonOk (see GCBO)
56 % eventdata reserved - to be defined in a future version of MATLAB
57 % handles structure with handles and user data (see GUIDATA)
58 
59 handles.output.params = {...
60 'no_fea', mat2str(eval(get(handles.edit_no_fea, 'String'))) ...
61 };
62 handles.output.flag_ok = 1;
63 guidata(hObject, handles);
64 uiresume();
65 
66 
67 function edit_no_fea_Callback(hObject, eventdata, handles)
68 
69 % --- Executes during object creation, after setting all properties.
70 function edit_no_fea_CreateFcn(hObject, eventdata, handles)
71 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
72  set(hObject,'BackgroundColor','white');
73 end
74 %>@endcond
function gui_set_position(in hObject)
Property no_fea
Definition: fcon_resample.m:9
Resampling - uses MATLAB's DSP Toolbox resample() function.
Definition: fcon_resample.m:4