Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

MATLAB Command Window Page 1

>> A = [5 0 0 -1 -1 0 0;3 0 0 0 0 0 -4;12 2 0 -3 0 -2 0;1 0 0 0 -2 0 0;0 1 0 -1 0 0 0;0 0


1 0 0 -1 0]

A =

5 0 0 -1 -1 0 0
3 0 0 0 0 0 -4
12 2 0 -3 0 -2 0
1 0 0 0 -2 0 0
0 1 0 -1 0 0 0
0 0 1 0 0 -1 0

>> R = rref(A)

R =

Columns 1 through 5

1.0000 0 0 0 0
0 1.0000 0 0 0
0 0 1.0000 0 0
0 0 0 1.0000 0
0 0 0 0 1.0000
0 0 0 0 0

Columns 6 through 7

0 -1.3333
0 -6.0000
0 -5.0000
0 -6.0000
0 -0.6667
1.0000 -5.0000

>>

You might also like