Menu

slice_nD

A. Smith

slice_nD

The ‘slice_nD’ function extracts slices from one or more dimensions in a spectrum. It utilizes linear prediction unless the slice to be extracted exactly matches a frequency position in the original spectrum. To avoid using linear prediction, use ‘proj_nD’ with one frequency position per dimension. ‘slice_nD’ requires an argument specifying the dimension(s) to extract slices from, and a second argument specifying the frequency position(s) at which to extract the slices.

To obtain a 1D slice from a 3D spectrum, at positions in the 1st and 3rd dimensions:

spec1D=slice_nD(spec3D,[1 3],[45 110]);

Auth0 Logo