MatArray Toolbox
  Go to function:
    Search    Help Desk 
prettytree    Examples   See Also

Sorts the nodes in a tree to make it look prettier.

Syntax

Description

Each line of a hierarchical clustering tree represents a node. Except for the first line, which is the root of the tree, the order in which the lines are presented does not matter. hierarc produces trees in which the lines are in a random-looking order. prettytree sorts the lines so that the first line is the root, the second line is the second highest node, and so on, and puts the leaves at the end. This sorting can sometimes ease the coding of scripts.

Examples

OK, granted, this is not really pretty.

See Also

hierarc



[ Previous | Help Desk | Next ]