Shifts the elements of an array of any dimension in a circular manner.
c = circularshift(a, b)
c = circularshift(a, b, shift)
Scalar or array of any dimension.
Shifts you want to perform. The elements in b determine by which number of places the corresponding dimension of a is shifted. For example, the first element of b determines by which number of places a shifts downwards and the second element of b determines by which a shifts right. If you use the third parameter shift, b must be a scalar and correspond to the dimension of a.
Dimension to be shifted. shift can be in a range of 1 to the maximum supported array dimension (32). If you use shift, b must be a scalar.
a with the shifted elements.