Wavelet Toolbox
  Go to function:
    Search    Help Desk 
istnode    Examples   See Also

Check if nodes are terminal nodes.

Syntax

Description

istnode is a tree management utility.

R = istnode(T,N) returns ranks (in left to right terminal nodes ordering) for terminal nodes N belonging to the tree structure T and 0's for others.

N can be a column vector containing the indices of nodes or a matrix that contains the depths and positions of nodes.

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

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

Examples

% Create initial tree.

See Also

isnode, maketree, wtreemgr

[ Previous | Help Desk | Next ]