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

Node parent.

Syntax

Description

nodepar is a tree management utility.

F = nodepar(T,N) returns the indices of the "parent(s)" of the nodes N in the tree structure T. 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.

F = nodepar(T,N,'deppos') is a matrix that contains the depths and positions of returned nodes. F(i,1) is the depth of i-th node and F(i,2) is the position of i-th node.

nodepar(T,0) or nodepar(T,[0,0]) returns-1.
nodepar(T,0,'deppos') or nodepar(T,[0,0],'deppos') returns [-1,0].

Examples

See Also

maketree, nodeasc, nodedesc, wtreemgr

[ Previous | Help Desk | Next ]