Find the angle between two points in 3D plot.

13 Ansichten (letzte 30 Tage)
Ali Raza
Ali Raza am 22 Aug. 2019
Kommentiert: Henry Ukwu am 17 Apr. 2020
Untitled-1.png
How can we find the angle between two points in 3D plot along y-axis?

Akzeptierte Antwort

Bruno Luong
Bruno Luong am 22 Aug. 2019
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 Kommentare
Ali Raza
Ali Raza am 22 Aug. 2019
Thank U very much, I got this.
Henry Ukwu
Henry Ukwu am 17 Apr. 2020
can i get the angle between the two points in 3D space when projected on xy plane ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by