How to display Number in 2-D plots

2 visualizzazioni (ultimi 30 giorni)
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 ...);

Risposta accettata

Sachin Ganjare
Sachin Ganjare il 11 Ott 2012
  1 Commento
Tallha Akram
Tallha Akram il 11 Ott 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')

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Graphics in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by