Main Content

drawtree

(Removed) Draw wavelet packet decomposition tree (GUI)

    Wavelet Analyzer has been removed. drawtree is part of Wavelet Analyzer. For recommended alternatives, see Version History.

    Description

    drawtree(T) draws the wavelet packet tree T.

    example

    fig = drawtree(T) returns the figure handle.

    drawtree(T,F) draws the wavelet packet tree T in the existing figure F.

    Examples

    collapse all

    Create a wavelet packet tree and draw the result.

    x   = sin(8*pi*[0:0.005:1]);
    t   = wpdec(x,3,'db2');
    fig = drawtree(t);
    

    Modify the tree and draw the result in the existing figure.

    t   = wpjoin(t,2);
    drawtree(t,fig);
    

    Input Arguments

    collapse all

    Tree, specified as a dtree, ntree, or wptree object.

    Handle to the figure, specified as a figure handle. F must be a handle to a figure produced by a previous call to drawtree.

    Version History

    Introduced before R2006a

    expand all