IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_loadings.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref vis_loadings
4 %> @image html Screenshot-uip_vis_loadings.png
5 %>
6 %> <b>Indexes of features to plot</b> - see vis_loadings::idx_fea
7 %>
8 %> @sa vis_loadings
9 
10 %>@cond
11 function varargout = uip_vis_loadings(varargin)
12 % Last Modified by GUIDE v2.5 28-Sep-2011 21:27:57
13 
14 % Begin initialization code - DO NOT EDIT
15 gui_Singleton = 1;
16 gui_State = struct('gui_Name', mfilename, ...
17  'gui_Singleton', gui_Singleton, ...
18  'gui_OpeningFcn', @uip_vis_loadings_OpeningFcn, ...
19  'gui_OutputFcn', @uip_vis_loadings_OutputFcn, ...
20  'gui_LayoutFcn', [] , ...
21  'gui_Callback', []);
22 if nargin && ischar(varargin{1})
23  gui_State.gui_Callback = str2func(varargin{1});
24 end
25 
26 if nargout
27  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
28 else
29  gui_mainfcn(gui_State, varargin{:});
30 end
31 % End initialization code - DO NOT EDIT
32 
33 
34 % --- Executes just before uip_vis_loadings is made visible.
35 function uip_vis_loadings_OpeningFcn(hObject, eventdata, handles, varargin)
36 handles.output.flag_ok = 0;
37 guidata(hObject, handles);
38 gui_set_position(hObject);
39 
40 % --- Outputs from this function are returned to the command clae.
41 function varargout = uip_vis_loadings_OutputFcn(hObject, eventdata, handles)
42 try
43  uiwait(handles.figure1);
44  handles = guidata(hObject);
45  varargout{1} = handles.output;
46  delete(gcf);
47 catch
48  output.flag_ok = 0;
49  output.params = {};
50  varargout{1} = output;
51 end;
52 
53 % --- Executes on button press in pushbuttonOK.
54 function pushbuttonOK_Callback(hObject, eventdata, handles) %#ok<*DEFNU,*INUSL>
55 try
56  other = uip_vis_grades();
57  if other.flag_ok
58  handles.output.params = [other.params, {...
59  'idx_fea', mat2str(eval(get(handles.edit_idx_hist, 'String'))) ...
60  }];
61  handles.output.flag_ok = 1;
62  guidata(hObject, handles);
63  uiresume();
64  end;
65 catch ME
66  irerrordlg(ME.message, 'Cannot continue');
67 end;
68 
69 
70 function edit_idx_hist_Callback(hObject, eventdata, handles)
71 
72 % --- Executes during object creation, after setting all properties.
73 function edit_idx_hist_CreateFcn(hObject, eventdata, handles)
74 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
75  set(hObject,'BackgroundColor','white');
76 end
77 %> @endcond
Visualization - Loadings plots or Peak Location plots for loadings vectors.
Definition: vis_loadings.m:4
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)
Property idx_fea
=1. (int vector) Index of columns from the Loadings matrix
Definition: vis_loadings.m:13