Flip order of elements
B = flip(
returns
array A
)B
the same size as A
,
but with the order of the elements reversed. The dimension that is
reordered in B
depends on the shape of A
:
If A
is vector, then flip(A)
reverses
the order of the elements along the length of the vector.
If A
is a matrix, then flip(A)
reverses
the elements in each column.
If A
is an N-D array, then flip(A)
operates
on the first dimension of A
in which the size value
is not 1
.