unshiftdata
Revert the order of matrix dimensions modified by shiftdata.
Syntax
out = unshiftdata(x, perm, shifts)
Inputs
- x
- The matrix on which to revert a dimension shift.
- perm
- A permutation vector from shiftdata.
- shifts
- The number of shifts from shiftdata.
Outputs
- out
- The reverted matrix.
Example
x = reshape([1:24],4,2,3);
[xs, perm, shifts] = shiftdata(x, 2)
y = unshiftdata(xs, perm, shifts);
Comments
unshiftdata is typically used following shiftdata to restore the orignal order of dimensions.