How to add values at blue dots in graphs?
2 次查看(过去 30 天)
显示 更早的评论
How to add values at blue dots in graphs?
to add values like this:
0 个评论
采纳的回答
Ameer Hamza
2020-11-28
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Directed Graphs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!