Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

circshift - Class: categorical

Shift categorical array circularly

Syntax

B = circshift(A,shiftsize)

Description

B = circshift(A,shiftsize) circularly shifts the values in the categorical array A by shiftsize elements. shiftsize is a vector of integer scalars where the n-th element specifies the shift amount for the n-th dimension of array A. If an element in shiftsize is positive, the values of A are shifted down (or to the right). If it is negative, the values of A are shifted up (or to the left).

See Also

permute, shiftdim

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS