7 function varargout = uip_pre_sub_refmean(varargin)
8 % Last Modified by GUIDE v2.5 12-Dec-2011 17:10:12
10 % Begin initialization code - DO NOT EDIT
12 gui_State =
struct(
'gui_Name', mfilename, ...
13 'gui_Singleton', gui_Singleton, ...
14 'gui_OpeningFcn', @uip_pre_sub_refmean_OpeningFcn, ...
15 'gui_OutputFcn', @uip_pre_sub_refmean_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
30 % --- Executes just before uip_pre_sub_refmean is made visible.
31 function uip_pre_sub_refmean_OpeningFcn(hObject, eventdata, handles, varargin)
32 handles.output.flag_ok = 0;
33 guidata(hObject, handles);
36 % --- Outputs from this function are returned to the command clae.
37 function varargout = uip_pre_sub_refmean_OutputFcn(hObject, eventdata, handles)
39 uiwait(handles.figure1);
40 handles = guidata(hObject);
41 varargout{1} = handles.output;
46 varargout{1} = output;
49 % --- Executes on button press in pushbuttonOK.
50 function pushbuttonOK_Callback(hObject, eventdata, handles)
52 refclass = eval(get(handles.edit_idx_refclass, 'String'));
54 irerror('Index of reference class needs to be >= 1!');
57 handles.output.params = {...
58 'idx_refclass', int2str(refclass) ...
60 handles.output.flag_ok = 1;
61 guidata(hObject, handles);
69 function edit_idx_refclass_Callback(hObject, eventdata, handles)
72 % --- Executes during
object creation, after setting all properties.
73 function edit_idx_refclass_CreateFcn(hObject, eventdata, handles)
74 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
75 set(hObject,'BackgroundColor','white');
79 % --- Executes on selection change in popupmenu_data_input.
80 function popupmenu_data_input_Callback(hObject, eventdata, handles)
83 % --- Executes during
object creation, after setting all properties.
84 function popupmenu_data_input_CreateFcn(hObject, eventdata, handles)
85 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
86 set(hObject,'BackgroundColor','white');
function gui_set_position(in hObject)
Subtracts the mean of a reference class from all the rows.
function irerrordlg(in errorstring, in dlgname)