Find the angle between two points in 3D plot.

Untitled-1.png
How can we find the angle between two points in 3D plot along y-axis?

 採用された回答

Bruno Luong
Bruno Luong 2019 年 8 月 22 日

1 投票

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 件のコメント

Ali Raza
Ali Raza 2019 年 8 月 22 日
Is that along the y-axis as figure indicating??
Bruno Luong
Bruno Luong 2019 年 8 月 22 日
yes
Ali Raza
Ali Raza 2019 年 8 月 22 日
Thank U very much, I got this.
Henry Ukwu
Henry Ukwu 2020 年 4 月 17 日
can i get the angle between the two points in 3D space when projected on xy plane ?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

2019 年 8 月 22 日

コメント済み:

2020 年 4 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by