fliplr
Flip array left to right
Syntax
Description
B = fliplr(
returnsA
)A
with its columns flipped in the left-right direction (that is, about a vertical axis).
IfA
is a row vector, thenfliplr(A)
returns a vector of the same length with the order of its elements reversed. IfA
is a column vector, thenfliplr(A)
simply returnsA
. For multidimensional arrays,fliplr
operates on the planes formed by the first and second dimensions.