shiftdim
- :
B =shiftdim(A)¶ - :
B =shiftdim(A, n)¶ Shift the dimensions of an array.
With one argument, leading singleton dimensions are removed. The optional second output is the number of dimensions shifted (or n when n is supplied). Positive n left-circularly shifts dimensions; negative n pads A with leading singleton dimensions.