MATLAB Function Reference
  Go to function:
    Search    Help Desk 
flipdim    Examples   See Also

Flip array along a specified dimension

Syntax

Description

B = flipdim(A,dim) returns A with dimension dim flipped.

When the value of dim is 1, the array is flipped row-wise down. When dim is 2, the array is flipped columnwise left to right. flipdim(A,1) is the same as flipud(A), and flipdim(A,2) is the same as fliplr(A).

Examples

flipdim(A,1) where

produces

See Also

fliplr      Flip matrices left-right

flipud      Flip matrices up-down

permute     Rearrange the dimensions of a multidimensional array

rot90       Rotate matrix 90°



[ Previous | Help Desk | Next ]