Split (decompose) wavelet packet.
Syntax
[T,D] = wpsplt(T,D,N)
[T,D,cA,cD] = wpsplt(T,D,N)
[T,D,cA,cH,cV,cD] = wpsplt(T,D,N)
Description
wpsplt is a one- or two-dimensional wavelet packet analysis function.
wpsplt updates the tree and data structures after the decomposition of a node.
[T,D] = wpsplt(T,D,N) returns the modified tree structure T and the modified data structure D, corresponding to the decomposition of the node N.
For a one-dimensional decomposition:
[T,D,cA,cD] = wpsplt(T,D,N) with cA = approximation and cD = detail of node N.
For a two-dimensional decomposition:
[T,D,cA,cH,cV,cD] = wpsplt(T,D,N) with cA = approximation and
cH,cV,cD = details of node N.
Examples
% Load signal.
load noisdopp;
x = noisdopp;
% Decompose x at depth 3 with db1 wavelet packets.
[wpt,wpd] = wpdec(x,3,'db1');
% Plot wavelet packet tree structure wpt.
plottree(wpt)

% Decompose packet (3,0).
[wpt,wpd] = wpsplt(wpt,wpd,[3 0]);
% or equivalently wpsplt(wpt,wpd,7).
% Plot wavelet packet tree structure wpt.
plottree(wpt)

See Also
maketree, wavedec, wavedec2, wpdec, wpdec2, wpjoin
[ Previous | Help Desk | Next ]