plot an arc between two points

조회 수: 6 (최근 30일)
Alan
Alan 2020년 12월 3일
댓글: Alan 2020년 12월 6일
Hello,
I have two 3d points on a unit sphere, which are A1(x1,y1,z1) and A2(x2,y2,z2). I want to connect A1 and A2 points and draw an arc. Then my code like this: P = [A1;A2];
plot3(P(:,1),P(:,2),P(:,3)). However, by this way, the connect line between A1 and A2 is a straight line instead of an arc. My plot like below,
Many thanks for your help in advance.

채택된 답변

KSSV
KSSV 2020년 12월 3일
First get the radius of sphere....I hope center is (0,0,0). To get radius use:
  댓글 수: 3
Alan
Alan 2020년 12월 6일
Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by