flipud
flipud is a function in the MATLAB programming language and its open-source equivalent, Octave. Its primary purpose is to reverse the order of elements in a matrix or array along the first dimension (rows). When applied to a 2D matrix, flipud effectively flips the matrix vertically, swapping the top row with the bottom row, the second row with the second-to-last row, and so on. For a vector, it reverses the order of its elements.
For example, if you have a matrix A, the command flipud(A) will return a new matrix where