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

Node ascendants

Syntax

Description

nodeasc is a tree-management utility.

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

A = nodeasc(T,N,'deppos') is a matrix, which contains the depths and positions of all ascendants. A(i,1) is the depth of the i-th ascendant and A(i,2) is the position of the i-th ascendant.

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

Examples

See Also

nodedesc, nodepar, wtreemgr


 Provide feedback about this page 

Previous page mswthresh nodedesc Next page

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