How can I plot a number over its assigned value?
Mostrar comentarios más antiguos
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 ])
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Title en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
