2D HCA, clustergram and dendrogram
显示 更早的评论
I am using the mac version of Matlab R2013a (8.1.0.604) to perform 2D HCA and create a clustergram of the 2D HCA. I am also getting it to create a dendrogram at the same time. The code I am using is: data = xlsread('FCTonly') data = data(:,2:end) data = xlsread('FCTonly') samples = data(:,1) data = data(:,2:end) variables = xlsread('FCTonlylabels1') X=pdist(data,'euclidean') Y=linkage(X,'complete') Z=dendrogram(Y) Z=clustergram(data,'linkage', 'average', 'colormap', 'redbluecmap', 'rowlabels', samples)
The issue I am having, which didn't happen all the other times I have used this, is that the dendrogram for my samples is wrong on the clustergram. The dendrogram it creates when I use the code is correct and has the correct clusters on it but on the clustergram the dendrogram is different and has changed the clusters slightly. Does anyone know why the clustergram and dendrogram would be different as it has never done this before?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Expression Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!