>> A=[2 4 -4;5 7 11]

A =

     2     4    -4
     5     7    11

>> rref(A)

ans =

     1     0    12
     0     1    -7

>> B=[1 -3 0  5; -1 1 5 2; 0 1 1 0]

B =

     1    -3     0     5
    -1     1     5     2
     0     1     1     0

>> rref(B)

ans =

     1     0     0     2
     0     1     0    -1
     0     0     1     1

>> B=[1 -3 0  5; -1 1 5 2]

B =

     1    -3     0     5
    -1     1     5     2

>> rref(B)

ans =

    1.0000         0   -7.5000   -5.5000
         0    1.0000   -2.5000   -3.5000