how can i give the 1 by 173 matrix as input to the k means clustering algorithm.
조회 수: 2 (최근 30일)
이전 댓글 표시
how can i give the 1 by 173 matrix as input to the k means clustering algorithm. is this code correct??? but am getting error as Index exceeds matrix dimension.
code clc X=load('D:\Viji\MATLAB\hist\e_dist.txt'); a=X(1,:); [idx,ctrs] = kmeans(a,3); plot(a(idx==1,1),'r.','MarkerSize',12); hold on plot(a(idx==2,1),'g.','MarkerSize',12); plot(a(idx==3,1),'b.','MarkerSize',12);
thank you.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!