필터 지우기
필터 지우기

Find the angle between two points in 3D plot.

조회 수: 11 (최근 30일)
Ali Raza
Ali Raza 2019년 8월 22일
댓글: Henry Ukwu 2020년 4월 17일
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일
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일
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개)

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by