How to display Number in 2-D plots

1 次查看(过去 30 天)
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 ...);

采纳的回答

Sachin Ganjare
Sachin Ganjare 2012-10-11
  1 个评论
Tallha Akram
Tallha Akram 2012-10-11
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')

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by