Owning Class: linalgebra
Requires: MathScript RT Module
c = circularshift(a, b)
Legacy Name: circshift
Shifts the elements of a matrix in a circular manner.
| Name | Description |
|---|---|
| a | Specifies a matrix. |
| b | Describes the shift you want to perform. If b has two elements, elements in a shift downwards by the first element number of places and shift right by the second element number of places. If b has only one element, elements in a shift downwards by b number of places. b is a vector with integer values. |
| Name | Description |
|---|---|
| c | Returns a with the shifted elements. |
A = [1, 2; 3, 4; 6, 7]
B = [1, 1]
C = circularshift(A, B)