How to add values at blue dots in graphs?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Laur Haxhiu
le 28 Nov 2020
Réponse apportée : Ameer Hamza
le 28 Nov 2020
How to add values at blue dots in graphs?
to add values like this:
0 commentaires
Réponse acceptée
Ameer Hamza
le 28 Nov 2020
There is no general way. You can use text() to place the values, but to customize the location will require manual tweaking. For example
x = 0:5;
y = x.^2;
plot(x, y, '-o')
xlim([-0.1 5.1])
ylim([-2 25])
text(x+0.01, y-0.5, string(y))
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Directed Graphs 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!