matlab_3 - ans = Inf Inf Inf Inf b.) A = [4,9;5,11] A = 4 9...

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

View Full Document Right Arrow Icon
Jose Hernandez A08958956 Jake Hughes 1PM Exercise 3.1 Exercise 3.2 >> A = [1, 2, 0; 2, 1, 2; 0, 2, 1] A = 1 2 0 2 1 2 0 2 1 >> B = [3,0,3;1,5,1;1,1,3] B = 3 0 3 1 5 1 1 1 3 >> x = [1;2;3] x = 1 2 3 >> C = (2*A^2*B + 3*A')^2 C = Columns 1 through 2 8029 11572 11424 17257 7924 11564 Column 3 10956
Background image of page 1

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

View Full DocumentRight Arrow Icon
15424 10861 >> C * x ans = 64041 92210 63635 Exercise 3.3 Exercise 3.4 A = [0, 1, 0, 0, 0, 0; 1, 0, 1, 1, 1, 1; 0, 1, 0, 1, 1, 0; 1, 1, 1, 0, 1, 0; 0, 0, 1, 1, 0, 1; 0, 1, 0, 1, 1, 0] A = 0 1 0 0 0 0 1 0 1 1 1 1 0 1 0 1 1 0 1 1 1 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 >> A^4 ans = 7 7 10 10 10 7 17 34 27 34 34 17
Background image of page 2
17 19 25 25 25 17 16 24 25 28 27 17 11 26 17 24 25 10 17 19 25 25 25 17 >> A^5 + A^4 + A^3 + A^2 + A^1 ans = 26 46 40 48 48 26 94 140 142 160 160 94 66 114 102 122 122 66 75 121 114 132 133 74 67 95 102 112 111 68 66 114 102 122 122 66 Exercise 3.5 a. ) M = [1,1;100,100] M = 1 1 100 100 >> inv(M) Warning: Matrix is singular to working precision.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ans = Inf Inf Inf Inf b.) A = [4,9;5,11] A = 4 9 5 11 >> B = inv(A) B =-11.0000 9.0000 5.0000 -4.0000 >> A*B ans = 1.0000 -0.0000 1.0000 >> B*A ans = 1.0000 -0.0000 0 1.0000 c.) x = [5;10] x = 5 10 >> y = A*x y = 110 135 d.) e.) B*y ans = 5.0000 10.0000 Exercise 3.6 a.) P = Columns 1 through 3 0.8100 0.0800 0.1600 0.0900 0.8400 0.0500 0.0600 0.0400 0.7400 0.0400 0.0400 0.0500 Column 4 0.1000 0.0800 0.0400 0.7800 >> x0 = [48.56; 51.01; 0.0013; 0.0030] x0 = 48.5600 51.0100 0.0013 0.0030 P^3*x0 ans = 38.0697 41.6625 10.6096 9.2325 >> P^7*x0 ans = 35.3048 35.9549 14.4733 13.8413 >> P^10*x0 ans = 35.1003 34.1864 15.2278 15.0598 b.) P^30*x0 ans = 35.3110 32.7154 15.6298 15.9180 >> P^60*x0 ans = 35.3141 32.7090 15.6308 15.9203 >> P^100*x0 ans = 35.3141 32.7090 15.6308 15.9203...
View Full Document

This note was uploaded on 05/10/2010 for the course MATH 200 taught by Professor Hall during the Spring '10 term at Aarhus Universitet.

Page1 / 6

matlab_3 - ans = Inf Inf Inf Inf b.) A = [4,9;5,11] A = 4 9...

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

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