7 function varargout = uip_report_sovalues_comparison(varargin)
8 % Last Modified by GUIDE v2.5 12-Nov-2012 18:27:52
10 % Begin initialization code - DO NOT EDIT
12 gui_State =
struct(
'gui_Name', mfilename, ...
13 'gui_Singleton', gui_Singleton, ...
14 'gui_OpeningFcn', @uip_report_sovalues_comparison_OpeningFcn, ...
15 'gui_OutputFcn', @uip_report_sovalues_comparison_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_report_sovalues_comparison is made visible.
31 function uip_report_sovalues_comparison_OpeningFcn(hObject, eventdata, handles, varargin) %#ok<*INUSL>
33 handles.input.sovalues = varargin{2};
35 handles.input.sovalues = [];
37 handles.output.flag_ok = 0;
38 guidata(hObject, handles);
41 if ~isempty(handles.input.sovalues)
42 sov = handles.input.sovalues;
43 a = sov.get_numericfieldnames();
44 set(handles.popupmenu_valuesfieldname, '
string', a);
45 set(handles.edit_valuesfieldname, '
string', a{1});
47 set(handles.popupmenu_valuesfieldname,
'string', {
'?'});
55 % --- Outputs from
this function are returned to the command clae.
56 function varargout = uip_report_sovalues_comparison_OutputFcn(hObject, eventdata, handles)
58 uiwait(handles.figure1);
59 handles = guidata(hObject);
60 varargout{1} = handles.output;
65 varargout{1} = output;
69 % --- Executes on button press in pushbuttonOk.
70 function pushbuttonOk_Callback(hObject, eventdata, handles)
72 aaa = eval(get(handles.edit_dimspec, 'String'));
79 svfn =
fel(get(handles.edit_valuesfieldname, 'String'));
80 if ~isempty(handles.input.sovalues)
81 sov = handles.input.sovalues;
82 if ~any(strcmp(svfn, sov.get_numericfieldnames()));
83 irerror(sprintf('Invalid values field name: "%s"', svfn));
88 if isempty(svectorcomp)
92 handles.output.params = {...
94 'names', [
'{''', svfn,
'''}
'], ...
95 'maxrows
', int2str(eval(get(handles.edit_maxrows, 'String
'))), ...
96 'flag_ptable
' , int2str(get(handles.checkbox_flag_ptable, 'Value
')), ...
99 handles.output.flag_ok = 1;
100 guidata(hObject, handles);
103 irerrordlg(ME.message, 'Cannot
continue');
108 function edit_dimspec_Callback(hObject, eventdata, handles) %#ok<*INUSD,*DEFNU>
110 % --- Executes during object creation, after setting all properties.
111 function edit_dimspec_CreateFcn(hObject, eventdata, handles)
112 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
113 set(hObject,'BackgroundColor
','white
');
118 function edit_valuesfieldname_Callback(hObject, eventdata, handles)
120 function edit_valuesfieldname_CreateFcn(hObject, eventdata, handles)
121 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
122 set(hObject,'BackgroundColor
','white
');
125 function edit_maxrows_Callback(hObject, eventdata, handles)
127 function edit_maxrows_CreateFcn(hObject, eventdata, handles)
129 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
130 set(hObject,'BackgroundColor
','white
');
133 function checkbox_flag_ptable_Callback(hObject, eventdata, handles)
137 function popupmenu_valuesfieldname_Callback(hObject, eventdata, handles)
138 contents = cellstr(get(hObject,'String
'));
139 s = contents{get(hObject,'Value
')};
141 set(handles.edit_valuesfieldname, 'String
', s);
144 function popupmenu_valuesfieldname_CreateFcn(hObject, eventdata, handles)
145 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
146 set(hObject,'BackgroundColor
','white
');
154 % --- Executes on selection change in popupmenu_vectorcomp.
155 function popupmenu_vectorcomp_Callback(hObject, eventdata, handles)
156 % hObject handle to popupmenu_vectorcomp (see GCBO)
157 % eventdata reserved - to be defined in a future version of MATLAB
158 % handles structure with handles and user data (see GUIDATA)
160 % Hints: contents = cellstr(get(hObject,'String
')) returns popupmenu_vectorcomp contents as cell array
161 % contents{get(hObject,'Value
')} returns selected item from popupmenu_vectorcomp
164 % --- Executes during object creation, after setting all properties.
165 function popupmenu_vectorcomp_CreateFcn(hObject, eventdata, handles)
166 % hObject handle to popupmenu_vectorcomp (see GCBO)
167 % eventdata reserved - to be defined in a future version of MATLAB
168 % handles empty - handles not created until after all CreateFcns called
170 % Hint: popupmenu controls usually have a white background on Windows.
171 % See ISPC and COMPUTER.
172 if ispc && isequal(get(hObject,'BackgroundColor
'), get(0,'defaultUicontrolBackgroundColor
'))
173 set(hObject,'BackgroundColor
','white
');
Comparison and p-values tables.
function listbox_get_selected_1stname(in h_listbox)
function listbox_load_from_workspace(in classname, in h_list, in flag_blank, in string_empty, in input)
function gui_set_position(in hObject)
Paired Vector Comparer base class.