2 %> @file uip_as_fsel_grades.m
7 function varargout = uip_as_fsel_grades(varargin)
8 % Last Modified by GUIDE v2.5 26-Aug-2012 13:53:09
10 % Begin initialization code - DO NOT EDIT
12 gui_State =
struct(
'gui_Name', mfilename, ...
13 'gui_Singleton', gui_Singleton, ...
14 'gui_OpeningFcn', @uip_as_fsel_grades_OpeningFcn, ...
15 'gui_OutputFcn', @uip_as_fsel_grades_OutputFcn, ...
16 'gui_LayoutFcn', [] , ...
18 if nargin && ischar(varargin{1})
19 gui_State.gui_Callback = str2func(varargin{1});
23 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
25 gui_mainfcn(gui_State, varargin{:});
27 % End initialization code - DO NOT EDIT
29 % --- Executes just before uip_as_fsel_grades is made visible.
30 function uip_as_fsel_grades_OpeningFcn(hObject, eventdata, handles, varargin)
32 handles.inputobj = varargin{2};
34 handles.inputobj = [];
37 if numel(varargin) < 3
38 handles.input.flag_needs_fsg = 0;
40 handles.input.flag_needs_fsg = varargin{3};
42 handles.output.flag_ok = 0;
43 guidata(hObject, handles);
47 % --- Outputs from
this function are returned to the command clae.
48 function varargout = uip_as_fsel_grades_OutputFcn(hObject, eventdata, handles)
50 uiwait(handles.figure1);
51 handles = guidata(hObject);
52 varargout{1} = handles.output;
57 varargout{1} = output;
60 %############################################
63 function refresh(handles)
68 function view1(handles)
69 cla(handles.axes1, 'reset');
70 axes(handles.axes1); %
#ok<MAXES>
73 input = handles.inputobj;
76 msgbox('Cannot draw, input not specified!', 'Information');
79 global TEMP; %
#ok<*TLEV>
80 log = TEMP.use(input);
87 function params = get_params(handles)
89 types = {
'none',
'nf',
'threshold'};
90 sortmodes = {
'grade',
'index'};
98 'type', [
'''' types{get(handles.popupmenuType, 'Value
')} ''''], ...
99 'nf_select', int2str(eval(
get(handles.editNf,
'String'))), ...
100 'threshold',
get(handles.editThreshold,
'String'), ...
101 'peakdetector', spd, ...
102 'sortmode', [
'''' sortmodes{get(handles.popupmenu_sortmode, 'Value
')} ''''], ...
108 %############################################
109 function pushbuttonOk_Callback(hObject, eventdata, handles)
111 handles.output.params = get_params(handles);
112 handles.output.flag_ok = 1;
113 guidata(hObject, handles);
120 function pushbutton_preview_Callback(hObject, eventdata, handles) %
#ok<*INUSL>
123 %############################################
124 %############################################
129 function editVariables_CreateFcn(hObject, eventdata, handles) %#ok<*DEFNU,*INUSD>
130 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
131 set(hObject,'BackgroundColor','white');
133 function popupmenuType_Callback(hObject, eventdata, handles)
134 function popupmenuType_CreateFcn(hObject, eventdata, handles)
135 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
136 set(hObject,'BackgroundColor','white');
138 function editNf_Callback(hObject, eventdata, handles)
139 function editNf_CreateFcn(hObject, eventdata, handles)
140 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
141 set(hObject,'BackgroundColor','white');
143 function editThreshold_Callback(hObject, eventdata, handles)
144 function editThreshold_CreateFcn(hObject, eventdata, handles)
145 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
146 set(hObject,'BackgroundColor','white');
148 function popupmenuFsg_Callback(hObject, eventdata, handles)
149 function popupmenuFsg_CreateFcn(hObject, eventdata, handles)
150 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
151 set(hObject,'BackgroundColor','white');
153 function popupmenuPeakdetector_Callback(hObject, eventdata, handles)
154 function popupmenuPeakdetector_CreateFcn(hObject, eventdata, handles)
155 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
156 set(hObject,'BackgroundColor','white');
158 function popupmenu_fsg_Callback(hObject, eventdata, handles)
159 function popupmenu_fsg_CreateFcn(hObject, eventdata, handles)
160 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
161 set(hObject,'BackgroundColor','white');
163 function checkbox_flag_optimize_Callback(hObject, eventdata, handles)
164 function popupmenu_sortmode_Callback(hObject, eventdata, handles)
165 function popupmenu_sortmode_CreateFcn(hObject, eventdata, handles)
166 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
167 set(hObject,'BackgroundColor','white');
169 function popupmenu_input_Callback(hObject, eventdata, handles)
170 function popupmenu_input_CreateFcn(hObject, eventdata, handles)
171 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
172 set(hObject,'BackgroundColor','white');
function params2str(in params, in flag_o)
function listbox_get_selected_1stname(in h_listbox)
function setbatch(in o, in params)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)
Feature Selection based on a "grades" vector.