3 %>@brief Chemical-wavenumber correspondence
5 %> Returns a table with substance names, peak centres and closest indexes in
6 %> @c x,
if @c x is provided.
9 %> @param flag_table =0
10 function Z =
peak_db(x, flag_table)
13 if ~exist('flag_table', 'var')
22 'COO- symmetric stretching vibrations of fatty acids and amino acid',
24 'asymmetric phosphate',
27 'symmetric phosphate',
29 'protein phosphorylation'};
46 no = length(Z.centres);
48 Z.indexes = zeros(1, no);
52 if Z.centres(i) > x(j)
54 % Checks which point is closest, if current or last one.
57 elseif Z.centres(i)-x(j) < x(j-1)-Z.centres(i)
function peak_db(in x, in flag_table)