{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Lab 6 - Engineering 7 Introduction to Programming for...

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

Engineering 7: Prof. Alexandre Bayen Introduction to Programming for Engineers Spring 2011 Lab 6: Linear Algebra Date Assigned: 5:00pm, Friday – Mar 11. Date Due: 5:00pm, Friday – Mar 18. Problem 1: Do Problem 12.2 in the Reader Clarifications : You may assume that v1 and v2 are column vectors of the same size, and that tol is a positive scalar. Test Cases: >> out = myIsOrthogonal([1;0.001],[0.001;1],0.01) out = 1 >> out = myIsOrthogonal([1;0.001],[0.001;1],0.001) out = 0 >> out = myIsOrthogonal([1;0.001],[1;1],0.01) out = 0 >> out = myIsOrthogonal([1; 1], [-1; 1], 1e-10) out = 1 >> out = myIsOrthogonal([1 0 1 -1 1 1]', [0 1 0 1 1 0]', 1e-10) out = 1 Problem 2: Do Problem 12.4 in the Reader. Test Cases: >> A = [ 12 24 0 11 -24 18 15 14 -2 19 38 0 10 -31 25 9 4 11 1 2 0 21 -5 3 20 24 -7 6 12 0 13 -10 8 5 7 4 22 44 0 2 -12 17 23 16 -7]; >> B = myMakeLinInd(A) B = 12 11 -24 15 14 19 10 -31 9 4 1 21 -5 20 24 6 13 -10 5 7 22 2 -12 23 16

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

View Full Document
Engineering 7: Prof. Alexandre Bayen Introduction to Programming for Engineers Spring 2011 Problem 3: Do Problem 12.8 in the Reader. Clarifications : You may assume that b is a column vector and that the number of elements in b is the same as the number of rows in A . The output
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

Lab 6 - Engineering 7 Introduction to Programming for...

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

View Full Document
Ask a homework question - tutors are online