How to display Number in 2-D plots

Hi,
I want to plot points shown by number not like '*' or '.' .
Let x=[1 2 3 4;1 2 3 4]T; T= Transpose.
plot(x(:,1),x(:,2), '*');
Here instead of '*', i want to use numbers like (1 or 2 or 3 or 4 or 5 ...);

 Respuesta aceptada

Sachin Ganjare
Sachin Ganjare el 11 de Oct. de 2012

0 votos

1 comentario

Tallha Akram
Tallha Akram el 11 de Oct. de 2012
It Helped enough. Thanks. The code is changed with this one, although not perfect, but work good for me.
x =[1 2 3 4;1 2 3 4]';
plot(x(:,1),x(:,2),'w*');
ln = findobj('type','line');
set(ln,'marker','.','markers',14,'markerfa','w')
text(x(:,1),x(:,2),'1')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by