The Scalar or Dot Product Lecture V1.2 Example 4 Moodle
Definition of the Dot Product commutative law
Distributive Law
Dot Product and Vector Components 1 0
Dot Product Properties 1 0 If B = A, then.
Given the vectors and find. Matlab Example 1 = (1)(3) + (-2)(1) + (4)(-2) = 3 – 2 – 8 = -7 >> A = [1 -2 4] A = >> B = [3 1 -2] B = >> AdotB = dot(A,B) AdotB = -7 >>
Given the vectors and find the angle between A and B. Matlab Example 2 >> A = [1 -2 4] A = >> B = [3 1 -2] B = >> phi = (acos(dot(A,B)/(norm(A)*norm(B))))*180/pi phi = >>