Borrar filtros
Borrar filtros

Find the angle between two points in 3D plot.

14 visualizaciones (últimos 30 días)
Ali Raza
Ali Raza el 22 de Ag. de 2019
Comentada: Henry Ukwu el 17 de Abr. de 2020
Untitled-1.png
How can we find the angle between two points in 3D plot along y-axis?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by