flipud

flipud(X) returns X with its elements reordered from top to bottom.

Examples

> X = (1:4)'#

	1
	2
	3
	4

> flipud(X)#

	4
	3
	2
	1
> flipud([2 2; 3 1])#

	3            1
	2            2

Resources

See also

fliplr