Name

rev — mimics gauss function rev

CALLING SEQUENCE

[B]=rev(A)

PARAMETERS

Input

• A = a (nxp) matrix

Output

• B = a (nxp) matrix

DESCRIPTION

Function that mimics gauss function rev: reverses the order of the rows of a matrix

EXAMPLE


A = [1 2 ; 3  4 ; 5 6];B=rev(A)

 

Example gives the matrix: 

B  =

!   5.    6. !

!   3.    4. !

!   1.    2. !     



               

AUTHOR

Eric Dubois 2004