Menu

proj_nD

A. Smith

proj_nD

The ‘proj_nD’ function performs a projection across one or more dimensions. One specifies the dimension(s) to be removed via projection in a vector, ‘dim’, and optionally one may provide the range of the spectrum to be projected over (2 entries, LB and UB, for each dimension to be projected over). If the ‘range’ variable is omitted, then the projections are performed across the entire dimension. Alternatively, proj_nD may be used to obtain slices, in which case one provides only one value per dimension in the ‘range’ argument. This will return the slice nearest to the given frequency position.

To obtain a 2D projection across the whole 2nd dimension of a 3D spectrum:

spec2D=proj_nD(spec3D,2);

To obtain a 1D projection across part of the 1st and 2nd dimensions of a 3D spectrum:

spec1D=proj_nD(spec3D,[1 2],[40 70 100 105]);

To obtain a 1D slice from particular positions in the 2nd and 3rd dimensions of a 3D spectrum

spec1D=proj_nD(spec3D,[2 3],[50 103]);

Auth0 Logo