IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
blmisc_fearange.m
Go to the documentation of this file.
1 %> @brief Re-sets the x-axis of a dataset using 2-element range vector provided.
2 %>
3 %>
5  properties
6  %> 2-element vector containing what are supposed to be the first and last elements of the x-axis vector of the
7  %> dataset. The class is prepared to handle both the direct and reverse cases.
8  range;
9  end;
10 
11  methods
12  function o = blmics_fearange(o)
13  o.classtitle = 'Re-set x-axis';
14  o.flag_params = 1;
15  end;
16  end;
17 
18  methods(Access=protected)
19  function data = do_use(o, data)
20  data.fea_x = linspace(o.range(1), o.range(2), data.nf);
21  end;
22  end;
23 end
24 
Miscellaneous block.
Definition: blmisc.m:4
Re-sets the x-axis of a dataset using 2-element range vector provided.