Lamsel: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Scott |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Line 18: | Line 17: | ||
===Examples=== | ===Examples=== | ||
inds = lamsel(lamda,[840 860; 1380 1400]); | <pre>inds = lamsel(lamda,[840 860; 1380 1400]);</pre> | ||
outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400. | outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400. |
Latest revision as of 13:57, 18 September 2008
Purpose
Determine indices of wavelength axes in specified ranges.
Synopsis
- inds = lamsel(freqs,ranges,out)
Description
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.
Examples
inds = lamsel(lamda,[840 860; 1380 1400]);
outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400.