plot graph, and add value

49 vues (au cours des 30 derniers jours)
dmfwlansejr
dmfwlansejr le 6 Sep 2021
Commenté : dmfwlansejr le 6 Sep 2021
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);

Réponse acceptée

KSSV
KSSV le 6 Sep 2021
x = (1:10)' ;
y = rand(size(x)) ;
plot(x,y,'.r')
hold on
text(x,y,num2str(y))
  1 commentaire
dmfwlansejr
dmfwlansejr le 6 Sep 2021
Thanks!!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Labels and Annotations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by