plotting Y data on scatter plot
1 次查看(过去 30 天)
显示 更早的评论
I am using the following command in scatter plot
uisng the following code
for i = 1:6
text(X(i),Y(i),sprintf('(%d)',Y(i)))
end
I am getting the values in E3 format ...I want only like 2500 instead of 2.5E3 easy to interpet any inputs will be highly helpful .Thank you in advance . I have used format shortG but it change for number not the plots
0 个评论
采纳的回答
Simon Chan
2022-1-18
Another option as follows:
for i = 1:6
text(X(i),Y(i),sprintf('(%.0f)',Y(i)))
end
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!