Question

11. Two vectors are given: u = 5i−6j+9k and v = 11i+7j - 4k Use MATLAB to calculate the dot product u v of the vectors in three ways: (a) Write

an expression using element-by-element calculation and the MAT- LAB built-in function sum. (b) Define u as a row vector and v as a column vector, and then use matrix multiplication. (c) Use the MATLAB built-in function dot.

Question image 1