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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by