BME_diary_19th_OCT

# BME_diary_19th_OCT - M = [16 3 2 14; 5 10 11 8; 9 6 7 10; 4...

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

Sheet1 Page 1 M = [16 3 2 14 M = 16 3 2 14 5 10 11 8 9 6 7 10 4 15 14 1 C = [6 57 C = 6 57 12 113 18 170 24 230 30 301 A = [6, 12, 34 A = 6 12 34 4 9 13 M(3,2) ans = 6 C(4,1) ans = 24 A(3,2) {??? Attempted to access A(3,2) } A(1,:) ans = 6 12 34 C(:,2) ans = 57

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

View Full Document
Sheet1 Page 2 113 170 230 301 subM = M(2:3,2:4) subM = 10 11 8 6 7 10 P = M¡¯ ??? P = M¡¯ | {Error: The input character is not valid in MATLAB statements or expressions. } P = M' P = 16 5 9 4 3 10 6 15 2 11 7 14 14 8 10 1 A' ans = 6 4 12 9 34 13 C' ans = 6 12 18 24 30 57 113 170 230 301 M + M' % adds the elements of M and M¡¯ ans = 32 8 11 18 8 20 17 23 11 17 14 24 18 23 24 2 M ./ M' % divide element by element M by M¡¯
Page 3 ans = 1.0000 0.6000 0.2222 3.5000 1.6667 1.0000 1.8333 0.5333 4.5000 0.5455 1.0000 0.7143 0.2857 1.8750 1.4000 1.0000 a = 3 a = 3 N = a*M N = 48 9 6 42 15 30 33 24 27 18 21 30 12 45 42 3 P = M ./ a P = 5.3333 1.0000 0.6667 4.6667 1.6667 3.3333 3.6667 2.6667 3.0000 2.0000 2.3333 3.3333 1.3333

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

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

## BME_diary_19th_OCT - M = [16 3 2 14; 5 10 11 8; 9 6 7 10; 4...

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

View Full Document
Ask a homework question - tutors are online