9. A unit vector u, in the direction of the vector u=xi+yj+zk is given by uu/u where

Question:

9. A unit vector u, in the direction of the vector u=xi+yj+zk is given by uu/u where u is the length (magnitude) of the vector, given by u =x+ y+2. Given the vector u=4i +13j-7k, determine the unit vec- tor in the direction of u using the following steps:

(a) Assign the vector to a variable u.

(b) Using element-by-element operation and the MATLAB built-in func- tions sum and sqrt calculate the length of u and assign it to the vari- able Lu.

(c) Use the variables from parts

(a) and

(b) to calculate u..

(d) Verify that the length of u,, is 1 using the same operations as in part (b).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: