Assigning labels and lines to points on a 3D scatter plot

25 ビュー (過去 30 日間)
Chris
Chris 2021 年 3 月 3 日
回答済み: darova 2021 年 3 月 4 日
So I have the following code:
x = 1
y = 1
z = 1
scatter3(x,y,z)
text(x+.5,y+.5,z+.5,'point 1', 'FontSize', 20)
I want to draw a line from the label I created, regardless of the postion I assign the text to be, to the location of the plotted point on the graph.
Any suggestions?

回答 (1 件)

darova
darova 2021 年 3 月 4 日
Use plot3 or line

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by