Problems

3.1Given the row vector p = [1 −2 5] and a column vector .

Solve the following:

  1. p*q

  2. q*p

  3. pT*qT, where T indicates transpose

  4. sum and mean of all the components of vectors p and q

  5. number of elements in vectors p and q

  6. maximum and minimum values in the vectors p and q

  7. product of elements of vector p and q

  8. arrange the elements of vectors p and q in ascending order

3.2Enter the following matrices at the Command Window:

, where z = 5 and x = −2

3.3Given ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.