Main Content

disp

WPTREE information

    Syntax

    Description

    disp(T) displays the contents of the wavelet packet tree T.

    example

    Examples

    collapse all

    Create a wavelet packet tree.

    x = randn(1,1000);
    t = wpdec(x,3,"db2");

    Merge the nodes with indices 3 and 5. Plot the modified tree.

    t = nodejoin(t,3);
    t = nodejoin(t,5);
    fig = plot(t);

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

    Programmatically, in Node Label, change the selected item from Depth_Position to Index.

    plot(t,"setNodeLabel",fig,"Index")

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

    Display the contents of the modified tree.

    disp(t)
     
    Wavelet Packet Object Structure
    ===============================
    Size of initial data :      [1  1000]
    Order                :      2
    Depth                :      3
    Terminal nodes       :      [3   9  10   5  13  14]
    ------------------------------------------------
    Wavelet Name               :db2
    Low Decomposition filter   :[-0.1294     0.2241     0.8365      0.483]
    High Decomposition filter  :[ -0.483     0.8365    -0.2241    -0.1294]
    Low Reconstruction filter  :[  0.483     0.8365     0.2241    -0.1294]
    High Reconstruction filter :[-0.1294    -0.2241     0.8365     -0.483]
    ------------------------------------------------
    Entropy Name               :shannon
    Entropy Parameter          :0
    ------------------------------------------------
     
    

    Input Arguments

    collapse all

    Wavelet packet tree, specified as a wptree object.

    Example: T = wpdec(rand(1,1000),2,"db2")

    Version History

    Introduced before R2006a

    See Also

    | | |