Main Content

wp2wtree

Extract wavelet tree from wavelet packet tree

    Description

    wp2wtree is a one- and two-dimensional wavelet packet analysis function.

    Tnew = wp2wtree(T) extracts from T the wavelet packet tree that corresponds to the wavelet decomposition tree.

    example

    Examples

    collapse all

    Load a signal.

    load noisdopp
    x = noisdopp;

    Use wpdec to decompose the signal at level 3 using Haar wavelet packets.

    wpt = wpdec(x,3,"db1");

    Plot the wavelet packet tree.

    plot(wpt)

    Figure contains 2 axes objects and other objects of type uimenu. Axes object 1 with title Tree Decomposition contains 29 objects of type line, text. Axes object 2 with title data for node: 0 or (0,0). contains an object of type line.

    Extract the tree that corresponds to the wavelet decomposition tree. Plot the result.

    wt = wp2wtree(wpt);
    plot(wt)

    Figure contains 2 axes objects and other objects of type uimenu. Axes object 1 with title Tree Decomposition contains 13 objects of type line, text. Axes object 2 with title data for node: 0 or (0,0). contains an object of type line.

    Input Arguments

    collapse all

    Wavelet packet tree, specified as a wptree object.

    Output Arguments

    collapse all

    Wavelet packet tree, returned as a wptree object.

    Version History

    Introduced before R2006a

    See Also

    |