MATLAB Function Reference    
treeplot

Plot picture of tree

Syntax

Description

treeplot(p) plots a picture of a tree given a vector of parent pointers, with p(i) = 0 for a root.

treeplot(p,nodeSpec,edgeSpec) allows optional parameters nodeSpec and edgeSpec to set the node or edge color, marker, and linestyle. Use '' to omit one or both.

See Also

etree, etreeplot, treelayout


 treelayout tril