DADiSP Worksheet Functions > F - K > FLIPUD
Reverses the elements of each column of an array.
FLIPUD(a)
a |
- |
An array. |
An array of size(a) where the elements of each column are in reversed order.
W1: {{1, 2, 3},
{4, 5, 6},
{7, 8, 9}}
W2: flipud(W1)
W2 == {{7, 8, 9},
{4, 5, 6},
{1, 2, 3}}
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.