Question: 1. Initialize two row vectors a and b of arbitrary but equal lengths (pick any length >3) with random numbers between 0 and 1. Recalling

1. Initialize two row vectors a and b of arbitrary but equal lengths (pick any length >3) with random numbers between 0 and 1. Recalling that the dot product between two vectors is a b= |al| bcos , calculate the angle, 0, between the two vectors (radians or degrees is fine - just state what you used). Note: You can use built-in inverse trigonometric functions from Matlab You may not use the built-in "dot and norm functions from Matlab You should not write products like a(1)*b(1)+a(2)*b(2)+..., etc. 2. (Extra credit) Consider vectors a=[1 1 1] and b=[1 -1 1]. These two linearly independent vectors define a plane. Calculate the unit normal to this plane. You can use any Matlab functions you like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
