The length |u| (magnitude) of a vector u = xi+ yj + zk is given by |u|

Question:

The length |u| (magnitude) of a vector u = xi+ yj + zk is given by |u| = √x2 + y2 + z2. Given the vector u = 23.5i - 17j + 6k, determine its length in the following two ways:
(a) Define the vector in MATLAB, and then write a mathematical expression that uses the components of the vector.
(b) Define the vector in MATLAB, then determine the length by writing one command that uses element-by-element operation and MATLAB built-in functions sum and sqrt.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

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