DADiSP Worksheet Functions > F - K > FLIPUD

 

FLIPUD

Purpose:

Reverses the elements of each column of an array.

Syntax:

FLIPUD(a)

a

-

An array.

Returns:

An array of size(a) where the elements of each column are in reversed order.

Example:

W1: {{1, 2, 3},

     {4, 5, 6}, 

     {7, 8, 9}} 

 

W2: flipud(W1)

 

W2 == {{7, 8, 9},

       {4, 5, 6}, 

       {1, 2, 3}} 

Remarks:

FLIPUD reverses the elements of each column which has the effect of reversing the row order of the array. Use FLIPLR to reverse the order of the elements in each row.

 

The input is converted to a series if it is not already a series or array.

See Also:

FLIPLR

RAVEL

REVERSE