plot an arc between two points

14 visualizaciones (últimos 30 días)
Alan
Alan el 3 de Dic. de 2020
Comentada: Alan el 6 de Dic. de 2020
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.

Respuesta aceptada

KSSV
KSSV el 3 de Dic. de 2020
First get the radius of sphere....I hope center is (0,0,0). To get radius use:
  3 comentarios
Alan
Alan el 6 de Dic. de 2020
Thank you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots 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