3D point label a in plot

조회 수: 16 (최근 30일)
SALIHU ABDULKADIR
SALIHU ABDULKADIR 2017년 11월 9일
댓글: SALIHU ABDULKADIR 2017년 11월 9일
how can I label a point in a 3D plot at x,y,z coordinates?

채택된 답변

Benjamin Kraus
Benjamin Kraus 2017년 11월 9일
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
SALIHU ABDULKADIR
SALIHU ABDULKADIR 2017년 11월 9일
Thanks a lot. I actually wanted to try that on a 3D point cloud.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by