I am implementing AP clustering algorithm. I don't know how to assign different colors to different cluster points.
My code segment is:
I=find(diag(E)>0) % Find number of cluster head
K=length(I); %cluster head
fprintf('Number_of_clusters:''%d',length(I))
[tmp c]=max(distance(:,I),[],2);
c(I)=1:K ;
idx=I(c)
for k=1:K
ii=find(c==k)% cluster points
end;
I have to set a different color to different cluster members like red for cluster one, blue for second one and so on.
How can I do this?