Main Content
shiftdata
Shift data to operate on specified dimension
Description
[
shifts data y
,perm
,nshifts
] = shiftdata(x
,dim
)x
to permute dimension dim
to the
first column using the same permutation as the built-in filter
function. perm
is the permutation that the
function uses.
Note
Use the shiftdata
function in tandem with the unshiftdata
function, which shifts the data back to its original shape.
These functions are useful for creating functions that work along a certain dimension,
like filter
, goertzel
, sgolayfilt
, and sosfilt
.