Wavelet Toolbox Previous page   Next Page
nodeasc

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


Previous page  morlet nodedesc Next page

© 1994-2005 The MathWorks, Inc.