plot graph, and add value

212 次查看(过去 30 天)
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))

更多回答(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