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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!