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

5 次查看(过去 30 天)
Please help

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call C++ from MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by