vectors u = (2,1,0) and v = (0,1,2). calculate cos thetha where thetha is the angle between u and v
5 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!