MATLAB Function Reference Previous page   Next Page
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


Previous page  treelayout tril Next page

© 1994-2005 The MathWorks, Inc.