FLIPLR

Purpose:

Reverses the elements of each row of an array.

Syntax:

FLIPLR(a)

a

-

An array.

Returns:

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

Example:

W1: {{1, 2, 3},

     {4, 5, 6}, 

     {7, 8, 9}} 

 

W2: fliplr(W1)

 

W2 == {{3, 2, 1},

       {6, 5, 4}, 

       {9, 8, 7}} 

Remarks:

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

 

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

See Also:

FLIPUD

RAVEL

REVERSE