You can use the \(\text{FlipUD}\) function to reverse the row order of a matrix.

You can use the \flipud backslash command to insert this function.

The following variants of this function are available:

  • \(\text{matrix } \text{FlipUD} \left ( \text{<matrix>} \right )\)

The \(\text{<matrix>}\) parameter is any type of matrix. The \(\text{FlipUD}\) function will return a matrix of the same type and the same dimension with the rows reversed.

The Figure 140 shows how you can use the \(\text{FlipUD}\) function.


Figure 140 Example Use Of The FlipUD Function