| MatArray Toolbox | Search  Help Desk |
| clustS2M | Examples See Also |
Syntax
res = clustS2M(tree)
Description
The format used to represent hierarchical clustering in the MatArray Toolbox is not the same as the one used in the Statistic Toolbox. The functionsclustM2S and clustS2M can
be used to pass from one format to the other.
Examples
» M = randn(8,8);
» tM = prettytree(hierarc(sqrt(dl2c(M)),0));
» tS = linkage(sqrt(dl2c(a,[]))','single');
» max(abs(clustS2M(tS)-tM))
ans =
0 0 0 0
» max(abs(tS-clustM2S(tM)))
ans =
0 0 0
See Also
clustM2S,
hierarc,
linkage,
prettytree