<< fix Elementary functions flipdim >>

flip


Flip order of elements


Syntax


B = flip(A, dim)

Input argument


A

an array

dim

an positive integer value

Output argument


B

flipped array.

Description


flip return an new array of A flipped about the dimension dim.

Example


x = eye(3, 2);
y = flip(x, 1)
y = flip(x, 2)
y = flip(x, 3)

See also


flipud, fliplr, flipdim.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< fix Elementary functions flipdim >>