How to display Number in 2-D plots

조회 수: 2 (최근 30일)
Tallha Akram
Tallha Akram 2012년 10월 11일
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에서 Graphics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by