Reduced Row Echelon Form Rref Using Matlab

Using Matlab to find the Reduced Row Echelon Form (RREF) of the following matrix see below matrix:

A=

2 4 6 8 10
3 5 7 9 13
6 7 3 9 18
-40 -20 -65 10 5

Open Matlab.
Enter:
A=[2,4,6,8,10;3,5,7,9,13;6,7,3,9,18;-40,-20,-65,10,5]

Then Enter:
rref(A)

Matlab will then output the RREF of this matrix:

1 0 0 0 -20.9
0 1 0 0 34.5
0 0 1 0 0.4
0 0 0 1 -11.1

This is nice, but someone add the steps that Matlab must have used? —Virgil Pierce

Not easy to read but these are the steps I used to get RREF:

R1 * 0.5 , R2 = R2 - 3R1 , R3 = R3 - 6R1 , R4 = R4 + 40R1
R2 = -1R2 , R3 = 5R2 + R3 , R4 = R4 - 60R2 , R3 = R3 + 3R2
R4 = 65R3 + R4 , R4 = R4/575 , R3 = R3 - 9R4
R2 = R2 - 3R4 , R2 = R2 - 2R3 , R1 = R1 - 2R2
R1 = R1 - 3R3 , R1 = R1 - 4R4

-Jfdelafuente

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License