Recompose wavelet packet.
Syntax
[T,D] = wpjoin(T,D,N)
[T,D,X] = wpjoin(T,D,N)
[T,D] = wpjoin(T,D)
[T,D,X] = wpjoin(T,D)
Description
wpjoin is a one- or two-dimensional wavelet packet analysis function. wpjoin updates the tree and data structures after the recomposition of a node.
The nodes are numbered from left to right and from top to bottom. The root index is 0.
[T,D] = wpjoin(T,D,N) returns the modified tree structure T and the modified data structure D (see maketree), corresponding to a recomposition of the node N.
[T,D,X] = wpjoin(T,D,N) also returns the coefficients of the node.
[T,D] = wpjoin(T,D) is equivalent to [T,D] = wpjoin(T,D,0).
[T,D,X] = wpjoin(T,D) is equivalent to [T,D,X] = wpjoin(T,D,0).
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)

% Recompose packet (1,1) or 2
[wpt,wpd] = wpjoin(wpt,wpd,[1 1]);
% Plot wavelet packet tree structure wpt.
plottree(wpt)

See Also
maketree,
wpdec,
wpdec2,
wpsplt
[ Previous | Help Desk | Next ]