Solutions%20to%20Lab%200

# Solutions%20to%20Lab%200 - -0.0000 0.5000-4.0588...

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

Control Systems MEC709 Solutions to Lab 0 Problem 1: >> A= [ 5 10 20 100; 60 40 20 10; 40 80 60 100; 12 11 10 9] A = 5 10 20 100 60 40 20 10 40 80 60 100 12 11 10 9 >> B = [ -2 3 4 5; 6 7 8 9; 10 11 12 13; 14 15 16 0] B = -2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 a)

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

View Full Document
>> A*B ans = 1650 1805 1940 375 460 830 960 920 2400 2840 3120 1700 268 358 400 289 b) >> det(A) ans = -875000 >> det(B) ans = -272 >> det(A*B) ans = c) >> inv(A) ans = 0.0107 0.0194 -0.0158 0.0343 -0.0160 0.0200 0.0320 -0.2000 -0.0064 -0.0520 -0.0172 0.3200 0.0123 0.0074 0.0010 -0.0457 >> inv(B)
ans = -0.2500 0.5000 -0.2500

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

View Full Document

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.

Unformatted text preview: -0.0000 0.5000 -4.0588 2.6176 -0.0588 -0.2500 3.3676 -2.2353 0.1176 0.0000 -0.0588 0.1176 -0.0588 >> inv(A*B) ans = -0.0091 0.0181 0.0242 -0.1886 0.0528 -0.2080 -0.1829 1.6692 -0.0408 0.1796 0.1503 -1.4028 -0.0005 -0.0077 -0.0040 0.0521 Problem 2: a) >> roots([1 4 -5 0]) ans = 0 -5 1 b) >> roots([1 0 3 0 7]) ans = -0.7569 + 1.4397i -0.7569 - 1.4397i 0.7569 + 1.4397i 0.7569 – 1.4397i c) >> roots([-1 0 0 0 3 0 1 1 7]) ans = 1.5033 0.7654 + 0.8465i 0.7654 - 0.8465i -0.0217 + 1.4313i -0.0217 - 1.4313i -1.4687 -0.7611 + 0.7802i -0.7611 – 0.7802i Problem 3: a = -1 a=-0.1 a=0 a=0.1 a=1...
View Full Document

## This note was uploaded on 02/20/2011 for the course MEC 709 taught by Professor Sharifi during the Fall '11 term at Ryerson.

### Page1 / 6

Solutions%20to%20Lab%200 - -0.0000 0.5000-4.0588...

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

View Full Document
Ask a homework question - tutors are online