Question: ave the result as Ex 2 Avec. ( b ) Find the vector from O to A and save the result as Ex 2 Bvec.

ave the result as Ex2Avec.
(b) Find the vector from O to A and save the result as Ex2Bvec.
(c) Find the vector from O to C and save the result as Ex2Cvec.
(d) Find the angle \angle AOC and save the result as Ex2Dnum. Use the dot product formula
v w =vw cos \theta
1
Exercise 3
We can visualize the geometry of vectors in 2D and 3D space as arrows but this is not
possible in higher dimensions. Instead we can visualize vectors in higher dimensions using
bar plots where the x-axis represents the index and the y-axis is the value of each entry. For
example:
>> v1=[+1-1+1-1+1-1+1-1+1-1];
>> bar(v1), grid on, ylim([-2+2])
2
>> v2=[+1+1-1-1+1+1-1-1+1+1];
>> bar(v2), grid on, ylim([-2+2])
>> w =[1234554321];
>> bar(w), grid on, ylim([-1+6])
(a) Compute the projection of w onto v1 and save the result as Ex3Avec.
(b) Compute the projection of w onto v2 and save the result as Ex3Bvec.
(c) Is the vector w perpendicular to v1? Save your response as Ex3Ctext = "yes" or
Ex3Ctext ="no".
(d) Is the vector w perpendicular to v2? Save your response as Ex3Dtext = "yes" or
Ex3Dtext ="no".

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!