How can you convert between a treeplot tree to a dendrogram?
2 views (last 30 days)
Show older comments
I have an array with my nodes and I would like to be able to use it on a clustergram but I am not sure how I would convert it to a dendrogram. An example tree:
n=[ 0 1 1 1 1 1 1 1 1 1 1 1 1 4 2 8 5 3 8 4]; treeplot(n) count = size(n,2); [x,y] = treelayout(n); x = x'; y = y'; name1 = cellstr(num2str((1:count)')); text(x(:,1), y(:,1), name1, 'VerticalAlignment','bottom','HorizontalAlignment','right') title({'Level Lines'},'FontSize',12,'FontName','Times New Roman');
thank you!
0 Comments
Answers (0)
See Also
Categories
Find more on Expression Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!