MATLAB Function Reference |
Syntax
Description
circularly shifts the values in the array, B = circshift(A,shiftsize)
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). If it is 0
, the values in that dimension are not shifted.
Example
Circularly shift first dimension values down by 1.
Circularly shift first dimension values down by 1 and second dimension values to the left by 1.
See Also
cholupdate | cla |
© 1994-2005 The MathWorks, Inc.