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

Node index to node depth-position

Syntax

Description

ind2depo is a tree-management utility.

For a tree of order ORD, [D,P] = ind2depo(ORD,N) computes the depths D and the positions P (at these depths D) for the nodes with indices N.

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

N must be a column vector of integers (N 0).

Note that [D,P] = ind2depo(ORD,[D P]).

Examples

See Also
depo2ind


 Provide feedback about this page 

Previous page ilwt2 intwave Next page

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