lab2 - Lab 2 Adam Edison Section 13 Exercise one here I...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 2 Adam Edison Section 13 Exercise one here I input the matrix and separated the rows with ; C=[ 2 -1 4 -5 27; -1 3 -2 -1 -26; 0 1 5 -6 15; 3 -8 1 0 53] C = 2 -1 4 -5 27 -1 3 -2 -1 -26 0 1 5 -6 15 3 -8 1 0 53 In this command I switched rows one and 2 C([1 2],:)=C([2 1],:) C = -1 3 -2 -1 -26 2 -1 4 -5 27 0 1 5 -6 15 3 -8 1 0 53 In this command i multiplied row one by negative one C(1,:)=-1*C(1,:) C = 1 -3 2 1 26 2 -1 4 -5 27 0 1 5 -6 15 3 -8 1 0 53 C(2,:)=C(2,:)-2*C(1,:) C = 1 -3 2 1 26 0 5 0 -7 -25 0 1 5 -6 15 3 -8 1 0 53 In this command I took -3 times row one and added it to row 4 C(4,:)=C(4,:)-3*C(1,:) C = 1 -3 2 1 26
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
0 5 0 -7 -25 0 1 5 -6 15 0 1 -5 -3 -25 C([2 4],:)=C([4 2],:) C = 1 -3 2 1 26 0 1 -5 -3 -25 0 1 5 -6 15 0 5 0 -7 -25 C(3,:)=C(3,:)-C(2,:) C = 1 -3 2 1 26 0 1 -5 -3 -25 0 0 10 -3 40 0 5 0 -7 -25 C(4,:)=C(4,:)-5*C(2,:) C = 1 -3 2 1 26 0 1 -5 -3 -25 0 0 10 -3 0 0 25 8 100 In this command i took 1/10 of row three . C(3,:)=1/10*C(3,:)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

lab2 - Lab 2 Adam Edison Section 13 Exercise one here I...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online