Main Content

disp

WPTREE information

    Syntax

    Description

    example

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

    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);

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

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

    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

    | | |