categorical.circshift
categorical: B = circshift (A, n)
categorical: B = circshift (A, n, dim)
Circularly shift the elements in a categorical array.
B = circshift (A, n) circularly shifts the
elements of the categorical array A according to n. If
n is a nonzero integer scalar, then the elements of A are
shifted by n elements along the first non-singleton dimension of
A. If n is a vector, it must not be longer that the number
of dimensions of A with each value of n corresponding to a
dimension in A. The sign of the value(s) in n specify the
direction in the elements of A are shifted.
B = circshift (A, n, dim) circularly
shifts the elements of the categorical array A along the dimension
specified by dim. In this case, n must be a scalar integer
value.
Source Code: categorical