www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ComputeInconsistencyCoefficientExample.m
%% Compute Inconsistency Coefficient %% % Create the sample data. % Copyright 2015 The MathWorks, Inc. X = gallery('uniformdata',[10 2],12); Y = pdist(X); %% % Generate the hierarchical cluster tree. Z = linkage(Y,'single'); %% % Generate a dendrogram plot of the hierarchical cluster tree. dendrogram(Z) %% % Compute the inconsistency coefficient for each link in the cluster tree Z % to depth 3. W = inconsistent(Z,3)