flipud
Flip an array upside down (reverse rows).
Syntax
Section titled “Syntax”B = flipud(A)Description
Section titled “Description”Reverses the order of rows in A — row 1 becomes the last row, row 2 second-to-last, etc. Equivalent to flipdim(A, 1) for 2D matrices.
Examples
Section titled “Examples”flipud([1; 2; 3]) % [3; 2; 1]flipud([1 2; 3 4]) % [3 4; 1 2]