How to display Number in 2-D plots

3 Ansichten (letzte 30 Tage)
Tallha Akram
Tallha Akram am 11 Okt. 2012
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 ...);

Akzeptierte Antwort

Sachin Ganjare
Sachin Ganjare am 11 Okt. 2012
  1 Kommentar
Tallha Akram
Tallha Akram am 11 Okt. 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')

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by