IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_fsel.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref fsel
4 %>
5 %> <b>Variables</b> - see fsel::v
6 %>
7 %> <b>Meaning of "Variables" above (1)</b> - How to interpret the vector given in the first box. See fsel::v_type
8 %>
9 %> <b>Meaning of "Variables" above (2)</b> - Whether to keep or to exclude the variables specified. See fsel::flag_complement
10 %>
11 %> @sa fsel
12 
13 %>@cond
14 function varargout = uip_fsel(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_fsel_OpeningFcn, ...
20  'gui_OutputFcn', @uip_fsel_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_fsel is made visible.
36 function uip_fsel_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_fsel_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 
55 
56 function editReg_Callback(hObject, eventdata, handles)
57 % hObject handle to editReg (see GCBO)
58 % eventdata reserved - to be defined in a future version of MATLAB
59 % handles structure with handles and user data (see GUIDATA)
60 
61 % Hints: get(hObject,'String') returns contents of editReg as text
62 % str2double(get(hObject,'String')) returns contents of editReg as a double
63 
64 
65 % --- Executes during object creation, after setting all properties.
66 function editReg_CreateFcn(hObject, eventdata, handles)
67 % hObject handle to editReg (see GCBO)
68 % eventdata reserved - to be defined in a future version of MATLAB
69 % handles empty - handles not created until after all CreateFcns called
70 
71 % Hint: edit controls usually have a white background on Windows.
72 % See ISPC and COMPUTER.
73 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
74  set(hObject,'BackgroundColor','white');
75 end
76 
77 
78 
79 % --- Executes on button press in pushbuttonOk.
80 function pushbuttonOk_Callback(hObject, eventdata, handles)
81 % hObject handle to pushbuttonOk (see GCBO)
82 % eventdata reserved - to be defined in a future version of MATLAB
83 % handles structure with handles and user data (see GUIDATA)
84 
85 flag_complement = strcmp(get(get(handles.uipanel_flag_complement, 'SelectedObject'), 'Tag'), 'radiobutton_exclude');
86 v_type = get(get(handles.uipanel_v_type, 'SelectedObject'), 'Tag');
87 v_type = v_type(13:end); % The suffixes match the "v_type" parameter of data_select_features()
88 
89 handles.output.params = {...
90 'v_type', ['''' v_type ''''], ...
91 'flag_complement', int2str(flag_complement), ...
92 'v', get(handles.editVariables, 'String') ...
93 };
94 handles.output.flag_ok = 1;
95 guidata(hObject, handles);
96 uiresume();
97 
98 
99 
100 function editVariables_Callback(hObject, eventdata, handles)
101 % hObject handle to editVariables (see GCBO)
102 % eventdata reserved - to be defined in a future version of MATLAB
103 % handles structure with handles and user data (see GUIDATA)
104 
105 % Hints: get(hObject,'String') returns contents of editVariables as text
106 % str2double(get(hObject,'String')) returns contents of editVariables as a double
107 
108 
109 % --- Executes during object creation, after setting all properties.
110 function editVariables_CreateFcn(hObject, eventdata, handles)
111 % hObject handle to editVariables (see GCBO)
112 % eventdata reserved - to be defined in a future version of MATLAB
113 % handles empty - handles not created until after all CreateFcns called
114 
115 % Hint: edit controls usually have a white background on Windows.
116 % See ISPC and COMPUTER.
117 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
118  set(hObject,'BackgroundColor','white');
119 end
120 %>@endcond
Property flag_complement
=0. See get_feaidxs.m
Definition: fsel.m:16
Feature Selection (FSel) class.
Definition: fsel.m:4
Property v_type
='i'. See get_feaidxs.m
Definition: fsel.m:13
Property v
=[]. See get_feaidxs.m
Definition: fsel.m:10
function gui_set_position(in hObject)
Analysis Session (AS) base class.
Definition: as.m:6