How can I plot a number over its assigned value?
Afficher commentaires plus anciens
I read this for plotting letters, how can I plot the number over its assigned value?
x = randi(10, 1, 5); % Create Data y = randi(10, 1, 5); L = strsplit(sprintf('%c\n','A':'E')); % Letter Labels figure(1) plot(x, y, '+r') text(x, y, L(1:length(x)), 'HorizontalAlignment','center', 'VerticalAlignment','bottom') axis([-0.5 10.5 -0.5 10.5 ])
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Title dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
