Wavelet Toolbox Previous page   Next Page
nodedesc

Node descendants

Syntax

Description

nodedesc is a tree-management utility.

D = nodedesc(T,N) returns the indices of all the descendants of the node N in the tree T where N can be the index node or the depth and position of node. D is a column vector with D(1) = index of node N.

D = nodedesc(T,N,'deppos') is a matrix that contains the depths and positions of all descendants. D(i,1) is the depth of i-th descendant and D(i,2) is the position of i-th descendant.

The nodes are numbered from left to right and from top to bottom. The root index is 0.

Examples

See Also
nodeasc, nodepar, wtreemgr


Previous page  nodeasc nodejoin Next page

© 1994-2005 The MathWorks, Inc.