Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions