MATLAB: Vectors u = (2,1,0) and v = (0,1,2). calculate cos thetha where thetha is the angle between u and v

planesvectors

Please help

Best Answer

u = [2 1 0];
v = [0 1 2];
costheta = dot(u,v)/(norm(u)*norm(v))
theta = acos(costheta) %n angle