plot graph, and add value

224 ビュー (過去 30 日間)
dmfwlansejr
dmfwlansejr 2021 年 9 月 6 日
コメント済み: dmfwlansejr 2021 年 9 月 6 日
Moving Boll to arrow direction
output is medium value
But output is string print, How to value printing
output=((x_mving-x_start)^2+(y_mving-y_start)^2)^0.5
xt=(x_start+x_mving)/2;
yt=(y_start+y_mving)/2;
str = 'output';
tt=text(xt,yt,str);

採用された回答

KSSV
KSSV 2021 年 9 月 6 日
x = (1:10)' ;
y = rand(size(x)) ;
plot(x,y,'.r')
hold on
text(x,y,num2str(y))
  1 件のコメント
dmfwlansejr
dmfwlansejr 2021 年 9 月 6 日
Thanks!!!

サインインしてコメントする。

その他の回答 (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