IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_blbl_extract_cv.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Windows for @ref blbl_extract_cv
4 %>
5 %> Asks for dataset (blbl_extract_cv::data), and index of reference class (blbl_extract_cv::idx_class_origin.
6 %>
8 %>
9 %> @image html Screenshot-ask_dataset.png
10 %>
11 %> @image html Screenshot-uip_blbl_extract_cv_0.png
12 %
13 %> @cond
14 function result = uip_blbl_extract_cv(o, data0)
15 result.flag_ok = 0;
16 while 1
17  if result.flag_ok
18  break;
19  end;
20 
21  r = ask_dataset();
22  if ~r.flag_ok
23  break;
24  end;
25  result.params = r.params;
26 
27 
28  while 1
29  p = inputdlg(sprintf('Enter index of reference class (0=ignored)'), 'Extract Cluster Vectors', 1, {'0'});
30  if isempty(p)
31  break;
32  end;
33  np = eval(p{1});
34 % if np < 0 || np > data.nc
35  if np < 0
36  irerrordlg('Invalid value!');
37  else
38  result.params = [result.params, 'idx_class_origin', int2str(np)];
39  result.flag_ok = 1;
40  break;
41  end;
42  end;
43 end;
44 %>@endcond
Property idx_class_origin
Extracts cluster vectors from block.
function irerrordlg(in errorstring, in dlgname)
function ask_dataset(in varargin)