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