flipud

Purpose

Flip matrices up-down.

Synopsis

B = flipud(A)

Description

flipud(A) returns A with rows flipped in the up-down direction, that is, about a vertical axis.

Examples

A =
    1    4
    2    5
    3    6
          
flipud(A) =
    3    6
    2    5
    1    4

See Also

:, ',fliplr, reshape, rot90

(c) Copyright 1994 by The MathWorks, Inc.