circularshift

Version:

Shifts the elements of an array of any dimension in a circular manner.

Syntax

c = circularshift(a, b)
c = circularshift(a, b, shift)
Legacy name: circshift

a

Scalar or array of any dimension.

b

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.

shift

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.

c

a with the shifted elements.

A = [1, 2; 3, 4; 6, 7]
B = [1, 1]
C = circularshift(A, B)

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported