Create a numeric column vector.

Use `circshift`

to shift the elements
by three positions.

The result, `Y`

, has the same elements as `A`

but
they are in a different order.

Create an array of characters.

Use `circshift`

to shift the characters
by three positions in the second dimension.

The characters are in a different order in `Y`

.

Create a numeric array with a cluster of ones in the top
left.

A =
1 1 0 0
1 1 0 0
0 0 0 0
0 0 0 0

Use `circshift`

to shift the elements
of `A`

by one position in each dimension.

Y =
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0

The cluster of ones is now in the center of the matrix.

To move the cluster back to its original position, use `circshift`

on `Y`

with
negative shift values.

X =
1 1 0 0
1 1 0 0
0 0 0 0
0 0 0 0

The matrix `X`

is equivalent to `A`

.