From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search


Determine indices of wavelength axes in specified ranges.


inds = lamsel(freqs,ranges,out)


LAMSEL determines the indices of the elements of a wavelength or wavenumber axis within the ranges specified. Inputs are the wavelength or wavenumber axis freqs and an m by 2 matrix defining the wavelength ranges to select ranges.

An optional input out suppresses displaying information to the command window when set to 0.

The output inds is a vector of indices of channels in the specified range(s) inclusive.


inds = lamsel(lamda,[840 860; 1380 1400]);

outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400.

See Also

baseline, savgol, specedit