Wavelet Toolbox™ Previous page   Next Page 
nodedesc
 Provide feedback about this page

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 the i-th descendant and D(i,2) is the position of the 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


 Provide feedback about this page 

Previous page nodeasc nodejoin Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS