www.gusucode.com > stats 源码程序 matlab案例代码 > stats/DendogramOfGroupMeansAfterMANOVAExample.m
%% Dendrogram of Group Means After MANOVA %% % Load the sample data. % Copyright 2015 The MathWorks, Inc. load carbig %% % Define the variable matrix. X = [MPG Acceleration Weight Displacement]; %% % Perform one-way MANOVA to compare the means of MPG, Acceleration, % Weight,and Displacement grouped by Origin. [d,p,stats] = manova1(X,Origin); %% % Create a dendrogram plot of the group means. manovacluster(stats)