Elementary Linear Algebra 6e - Larson, Edwards, Falvo - Chapter 5 MATLAB - Inner Product Spaces

# Elementary Linear Algebra 6e - Larson, Edwards, Falvo - Chapter 5 MATLAB - Inner Product Spaces

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

CHAPTER 5 MATLAB EXERCISES 5–1 CHAPTER 5 MATLAB EXERCISES 1. Use the MATLAB command norm(v) to find (a) the length of the vector (b) a unit vector in the direction of (c) the distance between the vectors and 2. The dot product of the vectors (written as columns) and is given by the matrix product Hence you can compute the dot product of u and v simply by multiplying the transpose of u times the vector v .Let and and use MATLAB to find the following. (a) (b) (c) (d) and 3. The angle between two nonzero vectors is given by Use MATLAB to find the angle between and (Hint: use the built-in inverse cosine function, acos ). 4. You can find the orthogonal projection of the column vector x onto the vector y by computing Use MATLAB to find the following projections of x onto y . (a) (b ) (c ) 5. Use the MATLAB command cross(u, v) to find the cross products of the following vectors. (a) (b) u 5 s 0, 1, 2 2 d , v 5 s 2 5, 14, 6 d u 5 s 1, 2 2, 1 d , v 5 s 3, 1, 2 2 d x 5 s 0, 1, 3, 2 3 d , y

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/24/2012 for the course MATH 310 taught by Professor Staff during the Spring '08 term at VCU.

### Page1 / 2

Elementary Linear Algebra 6e - Larson, Edwards, Falvo - Chapter 5 MATLAB - Inner Product Spaces

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

View Full Document
Ask a homework question - tutors are online