| MATLAB Function Reference | ![]() |
Syntax
treeplot(p) treeplot(p,nodeSpec,edgeSpec)
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
| treelayout | tril | ![]() |