• 2021-04-14
    智慧职教: 10、分析代码以下代码 clear;clc; a=[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); %第7行 for i=1:10 tm=find(T==i); tm=reshape(tm,1,length(tm)); fprintf('第%d类的有%s
    ',i,int2str(tm)); End figure; plot(T); T 其中第7行的函数cluster第三个参数‘10’代表( )
  • 举一反三