Main Content

wpsplt

Split (decompose) wavelet packet

Syntax

T = wpsplt(T,N)
[T,cA,cD] = wpsplt(T,N)
[T,cA,cH,cV,cD] = wpsplt(T,N)

Description

wpsplt is a one- or two-dimensional wavelet packet analysis function.

wpsplt updates the wavelet packet tree after the decomposition of a node.

T = wpsplt(T,N) returns the modified wavelet packet tree T corresponding to the decomposition of the node N.

For a one-dimensional decomposition,

[T,cA,cD] = wpsplt(T,N) with cA = approximation and cD = detail of node N.

For a two-dimensional decomposition,

[T,cA,cH,cV,cD] = wpsplt(T,N) with cA = approximation and cH,cV,c = horizontal, vertical, and diagonal details of node N.

Examples

% The current extension mode is zero-padding (see dwtmode).

% Load signal. 
load noisdopp; 
x = noisdopp;

% Decompose x at depth 3 with db1 wavelet packets. 
wpt = wpdec(x,3,'db1');

% Plot wavelet packet tree wpt. 
plot(wpt)

% Decompose packet (3,0).
wpt = wpsplt(wpt,[3 0]); 
% or equivalently wpsplt(wpt,7).

% Plot wavelet packet tree wpt. 
plot(wpt)

Version History

Introduced before R2006a