Find the angle between two points in 3D plot.

 采纳的回答

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 个评论

Is that along the y-axis as figure indicating??
Thank U very much, I got this.
can i get the angle between the two points in 3D space when projected on xy plane ?

请先登录,再进行评论。

更多回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by