I have plotted the k means graph ,i have 100 graphs ,now i want to label xand y axis for 1st graphthe X ,Y axis must 1&101respfor 2nd graph the X ,Y axis must 2&102resp;;;for 100thy graph X,Y axis must be 100&200respI have posted the coding clca=(25*rand(10,10))b=(89*rand(10,10))X=[a;b] opts = statset('Display','final'); [idx,ctrs]=kmeans(X,10,'Distance','city','Replicates',5,'Options',opts) v=size(idx) b=size(ctrs) for i=1:10 for j=1:10 figure, plot(X(idx==i,j),X(idx==i,j),'r.','MarkerSize',16) hold on; plot(X(idx==i+1,1),X(idx==i+1,2),'b.','MarkerSize',16) plot(X(idx==i+2,2),X(idx==i+2,3),'g.','MarkerSize',16) end end
please provide some suggestions
Best Answer