IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_flip_refmean.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref pre_flip_refmean
4 %>
5 %> <b>Index of class to be origin</b> - see vis_cv::idx_class_origin
6 %>
7 %> @sa pre_flip_refmean
8 
9 %>@cond
10 function varargout = uip_pre_flip_refmean(varargin)
11 % Last Modified by GUIDE v2.5 12-Dec-2011 19:51:12
12 
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_pre_flip_refmean_OpeningFcn, ...
18  'gui_OutputFcn', @uip_pre_flip_refmean_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_pre_flip_refmean is made visible.
34 function uip_pre_flip_refmean_OpeningFcn(hObject, eventdata, handles, varargin)
35 handles.output.flag_ok = 0;
36 guidata(hObject, handles);
37 gui_set_position(hObject);
38 
39 % --- Outputs from this function are returned to the command clae.
40 function varargout = uip_pre_flip_refmean_OutputFcn(hObject, eventdata, handles)
41 try
42  uiwait(handles.figure1);
43  handles = guidata(hObject);
44  varargout{1} = handles.output;
45  delete(gcf);
46 catch
47  output.flag_ok = 0;
48  output.params = {};
49  varargout{1} = output;
50 end;
51 
52 % --- Executes on button press in pushbuttonOK.
53 function pushbuttonOK_Callback(hObject, eventdata, handles)
54 try
55  refclass = eval(get(handles.edit_idx_refclass, 'String'));
56  if refclass < 1
57  irerror('Index of reference class needs to be >= 1!');
58  end;
59 
60  handles.output.params = {...
61  'idx_refclass', int2str(refclass) ...
62  };
63  handles.output.flag_ok = 1;
64  guidata(hObject, handles);
65  uiresume();
66 catch ME
67  irerrordlg(ME.message, 'Cannot continue');
68 
69 end;
70 
71 
72 function edit_idx_refclass_Callback(hObject, eventdata, handles)
73 
74 
75 % --- Executes during object creation, after setting all properties.
76 function edit_idx_refclass_CreateFcn(hObject, eventdata, handles)
77 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
78  set(hObject,'BackgroundColor','white');
79 end
80 
81 
82 % --- Executes on selection change in popupmenu_data_input.
83 function popupmenu_data_input_Callback(hObject, eventdata, handles)
84 
85 
86 % --- Executes during object creation, after setting all properties.
87 function popupmenu_data_input_CreateFcn(hObject, eventdata, handles)
88 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
89  set(hObject,'BackgroundColor','white');
90 end
91 %> @endcond
Flips the means around a reference class.
function irerror(in s)
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)
Visualization - Cluster Vectors.
Definition: vis_cv.m:4