a4 - dot command. For example, the dot product of vectors a...

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

View Full Document Right Arrow Icon
Math 136 Assignment 4 Due: Wednesday, Feb 4th Section 3-3 Exercises B1. B3. c) B4. B5. a) B6. a) D4 D6 MATLAB question is on the next page.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Use MATLAB to complete the following question. Use the diary feature to record your work. Record your written answer to part (b) in your diary file as well. When finished, print out your diary file and submit it with the rest of your assignment. Projections Before beginning these lab exercises, review the follow pages in the textbook on projections: ˆ Section 1-3, pp. 34-39. ˆ In particular, note the formula for a projection on p. 36. ˆ Example 13 in Section 3-2, pp. 148-149. To find the dot product of two vectors in MATLAB, use the
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: dot command. For example, the dot product of vectors a = (4 , 3 ,-1) and b = (-2 , 5 , 3) can be found as follows: >> a = [4; 3; -1] >> b = [-2; 5; 3] >> dot(a, b) MATLAB returns that the dot product is 4. To nd the length of a vector in MATLAB, use the norm command. For example, the length of a from the previous example can be found as follows: >> norm(a) MATLAB returns that the length of a is 5 . 0990. (a) Using the projection formula and the dot and norm commands in MATLAB, nd the matrix A = [ proj (8 ,-3 , 1 , 2) ]. (b) Using your result from part (a), nd [ proj (8 ,-3 , 1 , 2) ](4 ,-5 , 2 , 6). 2...
View Full Document

This note was uploaded on 09/04/2009 for the course MATH 136 taught by Professor All during the Winter '08 term at Waterloo.

Page1 / 2

a4 - dot command. For example, the dot product of vectors a...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online