Wavelet Toolbox Previous page   Next Page
noleaves

Determine nonterminal nodes

Syntax

Description

N = noleaves(T) returns the indices of nonterminal nodes of the tree T (i.e., nodes that are not leaves). N is a column vector.

The nodes are ordered from left to right as in tree T.

N = noleaves(T,'dp') returns a matrix N, which contains the depths and positions of nonterminal nodes.

N(i,1) is the depth of i-th nonterminal node and
N(i,2)  is the position of i-th nonterminal node.

Examples

See Also
leaves


Previous page  nodesplt ntnode Next page

© 1994-2005 The MathWorks, Inc.