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

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Engineering 7: Prof. Alexandre Bayen
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/07/2011 for the course ENGIN 7 taught by Professor Horowitz during the Spring '08 term at University of California, Berkeley.

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 Right Arrow Icon
Ask a homework question - tutors are online