plotting Y data on scatter plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Prasad Joshi
le 18 Jan 2022
Commenté : Prasad Joshi
le 18 Jan 2022
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 commentaires
Réponse acceptée
Simon Chan
le 18 Jan 2022
Another option as follows:
for i = 1:6
text(X(i),Y(i),sprintf('(%.0f)',Y(i)))
end
Plus de réponses (1)
Yusuf Suer Erdem
le 18 Jan 2022
Before 'text()' command add 'format long' command. it should be hepful.
Voir également
Catégories
En savoir plus sur 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!