1求聚类分析的matlab代码clc,cleara=[107.5901247,26.4991466;107.5894212,26.49878615;(各个点的坐标)];y=pdist(a,'cityblock');yc=squareform(y)z=linkage(y)[h,t]=dendrogram(z,10)T=cluster(z,'maxclust',10)fori=1:10tm=find(T==i);tm=reshape(tm,1,length(tm));fprintf('第%d类的有%s\n',i,int2str(tm));endplot(T);T结果格式是:第1类的有:……第2类的有:…………