The angle between two vectors
u1=x1i+y1j+z1k and
u2=x2i+y2j+z2k can be
determined by cos()=(x1*x2+y1*y2+z1*z2)/(|u1|*|u2|),
were
|u1|=sqrt(x1^2+y1^2+z1^1).
Given the vectors u1=3.2i-6.8j+9k and
u2=-4i+2j+7k, determine the angle between them (in
degrees) by writing one MATLAB command that uses element by element
multiplication and the MATLAB built in functions acosd, sum, and
sqrt.
This is what I tried but i don't think it's correct because it should be one value and I got a vector
u1=[3.2 -6.8 9] u2=[-4 2 7] theta=acosd(sum(u1.*u2)./sqrt(u1).*sqrt(u2)).
clc
clear all
u1 = [ 3.2, -6.8, 9 ];
u2 = [ -4, 2, 7 ];
theta = acosd(sum(u1.*u2)/sqrt((sum(u1.^2)*sum(u2.^2))));
fprintf('\ntheata = %0.4f degree\n',theta);
The angle between two vectors u1=x1i+y1j+z1k and u2=x2i+y2j+z2k can be determined by cos()=(x1*x2+y1*y2+z1*z2)/(|u1|*|u2|), were |u1|=sqrt(x1^2+y1^2+z1^1). Given...
2. Find the force (vector) between Q1-40uC r1 (x1-2,y1-2,z1-3) and Q2-47uCr2 (x2-3,y2-3,z2-1) A) .68i 34j -69k B) 1.25 .62j-1.26k 12 0 Fi C) 1.44i .72-145k D) 1.06i .53j-1.07k 5. When the coordinates of a system don't have components over the coordinates, we determine that they are D. Rectangular A. Orthogonal C. Inclusive 7. A vector V1 (x=4, y-6, z-8), which is the magnitude of the projection on the YZ plane A) 10 X 1 V 1 B) 8.5 C 13...