{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

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.

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

View Full Document
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
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

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online