plotting more data from large data

조회 수: 3 (최근 30일)
FIR
FIR 2011년 11월 5일
I have 100rows*10col,I know to plot k means clustering,i need 100 k means graph for those 100 r0ws,(1 kmeans for 1 row)i thought of writing function and calling it back,even for that the programming lines becomes more
i have code for k means clustering
X is data of 1row and 10 columns
idx,ctrs] = kmeans(X,3,...
'Distance','city',...
'Replicates',5,...
'Options',opts);
plot(X(idx==1,1),X(idx==1,2),'r.','MarkerSize',14)
hold on
plot(X(idx==2,1),X(idx==2,2),'b.','MarkerSize',14)
plot(X(idx==3,1),X(idx==3,2),'g.','MarkerSize',14)
legend('DBLCL','FL','CLL')
can u please help
i have values s
A A A A B B B B C C
.2 .5 .9 .7 .6 .8 .1 .269 .259 .25
'
'
'
'
'
'
.1 .36 .69 .25 .47 .36 .01 .25 .369 0.25
  댓글 수: 2
Image Analyst
Image Analyst 2011년 11월 5일
The programming lines become more what? You didn't finish the sentence. I don't even know what you're asking. Are you wanting to know if you should use scatter() instead of plot()? By the way, 100 by 10 10 is not large that's only 1000 elements. Even a garden variety digital image will have 18 million elements.
FIR
FIR 2011년 11월 7일
I said the number of programming lines increases,i want to plot k means clustering for each row,i have 100 rows,i have given the data above

댓글을 달려면 로그인하십시오.

답변 (1개)

Wolfgang Schwanghart
Wolfgang Schwanghart 2011년 11월 5일
Hi
doc gscatter
hope this helps. Regards, W.
  댓글 수: 1
FIR
FIR 2011년 11월 7일
I need 100 graphs for those 100 rows ?how it can be done

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by