Find the angle between two points in 3D plot.
4 次查看(过去 30 天)
显示 更早的评论

How can we find the angle between two points in 3D plot along y-axis?
0 个评论
采纳的回答
Bruno Luong
2019-8-22
if the 3D (x-y-z) coordinates of your two points are P1 and P2, both are (3 x 1) or (1 x 3) vectors
angleradian = acos((P2(2)-P1(2)) / norm(P2-P1))
4 个评论
Henry Ukwu
2020-4-17
can i get the angle between the two points in 3D space when projected on xy plane ?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!