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

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 the i-th nonterminal node and
N(i,2) is the position of the i-th nonterminal node.

Examples

See Also

leaves


 Provide feedback about this page 

Previous page nodesplt ntnode Next page

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