3D point label a in plot

17 visualizaciones (últimos 30 días)
SALIHU ABDULKADIR
SALIHU ABDULKADIR el 9 de Nov. de 2017
Comentada: SALIHU ABDULKADIR el 9 de Nov. de 2017
how can I label a point in a 3D plot at x,y,z coordinates?

Respuesta aceptada

Benjamin Kraus
Benjamin Kraus el 9 de Nov. de 2017
Sounds like you want to use the text command.
For example:
[X,Y] = meshgrid(-pi:pi/16:pi);
Z = cos(X).*sin(Y);
surf(X,Y,Z)
text(X(26,17),Y(26,17),Z(26,17)+0.1,'Peak')
  1 comentario
SALIHU ABDULKADIR
SALIHU ABDULKADIR el 9 de Nov. de 2017
Thanks a lot. I actually wanted to try that on a 3D point cloud.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations 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