EGR_102_Lab_03A_Solution

# EGR_102_Lab_03A_Solution - >> M =[2-1-4;1 2 2;0-3 4 M =...

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

Lab 03A Homework Name: Solution Section: 1 Spring 2012 Part I >> A=[4,4;2,5] A = 4 4 2 5 >> B=[3,18;0,-2] B = 3 18 0 -2 >> C=[3 13 -6] C = 3 13 -6 >> A-B ans = 1 -14 2 7 >> A*B ans = 12 64 6 26 >> B*A ans = 48 102 -4 -10 >> inv(A) ans = 0.4167 -0.3333 -0.1667 0.3333 >> A^-1

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

View Full Document
ans = 0.4167 -0.3333 -0.1667 0.3333 >> det(B) ans = -6 >> A*C ??? Error using ==> mtimes Inner matrix dimensions must agree. >> 5*A ans = 20 20 10 25 Part II
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> M = [2 -1 -4;1 2 2;0 -3 4] M = 2 -1 -4 1 2 2 0 -3 4 >> z = [-9;6;14] z = -9 6 14 >> b = inv(M)*z b = 1.2273 -0.6364 3.0227 Part III >> p=[6 -8 -7] p = 6 -8 -7 >> roots(p) ans = 1.9360 -0.6026 >> ezplot('6*x^2-8*x-7') >> grid on >> q=[2 0 -3 0] q = 2 0 -3 0 >> roots(q) ans = 0 1.2247 -1.2247 >> ezplot('2*x^3-3*x') >> grid on -6-4-2 2 4 6 50 100 150 200 250 300 x 6 x 2-8 x-7-3-2-1 1 2 3-20-15-10-5 5 10 15 20 x 2 x 3-3 x...
View Full Document

## This note was uploaded on 04/02/2012 for the course EGR 100 taught by Professor Hinds during the Fall '08 term at Michigan State University.

### Page1 / 3

EGR_102_Lab_03A_Solution - >> M =[2-1-4;1 2 2;0-3 4 M =...

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

View Full Document
Ask a homework question - tutors are online