Wavelet Toolbox
  Go to function:
    Search    Help Desk 
allnodes    Examples   See Also

Tree nodes.

Syntax

Description

allnodes is a tree management utility that returns one of two node descriptions: either indices, or depths and positions. Tree nodes are numbered from left to right and from top to bottom. The root index is 0.

N = allnodes(T) returns in column vector N the indices of all the nodes of the tree structure T.

N = allnodes(T,'deppos') returns in matrix N the depths and positions of all the nodes. N(i,1) is the depth and N(i,2) the position of the node i.

Examples

See Also

maketree

[ Previous | Help Desk | Next ]