Lab 09

# Lab 09 - Riti Gupta 20249537 Section 22 Lab 09 1 a-0.6-0.8...

This preview shows pages 1–5. Sign up to view the full content.

Riti Gupta 20249537 Section 22 Lab 09 1) a. ) -0.6 0 -1 0 0 0 * Sa = 0 -0.8 0 0 -1 0 0 * Sb = 0 0 0.8 0 0 -1 0 * HA = 0 0 -0.6 0 0 0 -1 * VA = 0 0.6 -0.8 0 0 0 0 * HB = 0 0.8 0.6 0 0 0 0 * VB = -F(z) b.) >> A=[-0.6,0,-1,0,0,0;-0.8,0,0,-1,0,0;0,.8,0,0,-1,0;0,-.6,0,0,0,-1;.6,-.8,0,0,0,0;.8,.6,0,0,0,0] A = -0.6000 0 -1.0000 0 0 0 -0.8000 0 0 -1.0000 0 0 0 0.8000 0 0 -1.0000 0 0 -0.6000 0 0 0 -1.0000 0.6000 -0.8000 0 0 0 0 0.8000 0.6000 0 0 0 0 >> b=[0;0;0;0;0;-F(z)] b = 0 0 0 0 0 -F(z)

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

View Full Document
c.) >> det(A) ans = 1.0000 d.) >> A\b ans = -8.0000 -6.0000 4.8000 6.4000 -4.8000 3.6000 e.) F=30:1:150; Ya=[]; Yb=[]; for i=length(F) b=[0;0;0;0;0;-F(i)]; x=A\b; Sa=x(1); Sb=x(2); Ya=[Ya,Sa]; Yb=[Yb,Sb]; end plot(Ya,F,Yb,F)
2.) a. ) >> C=[2,3,-1;-2,0,3;1,-1,2] C = 2 3 -1 -2 0 3 1 -1 2 >> d=[16;-18;-7] d = 16 -18 -7 b.) >> x=C\d x = 3.0000 2.0000 -4.0000 c.) >> C*x-d ans = 1.0e-014 * 0 0 -0.3553 You get values very close to zero, but a little off. The first number tells us how off our results are from zero, indicating how well our x works as a solution. These are called rounding errors.

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

View Full Document
3.) a.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

Lab 09 - Riti Gupta 20249537 Section 22 Lab 09 1 a-0.6-0.8...

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

View Full Document
Ask a homework question - tutors are online