Reconstruct single branch from 1-D wavelet coefficients
reconstructs the coefficients vector of type
x = wrcoef(
type based on the
wavelet decomposition structure
[c,l] of a 1-D signal (see
wavedec for more information)
using the wavelet specified by
wname. The coefficients at the
maximum decomposition level are reconstructed. The length of
is equal to the length of the original 1-D signal.
Reconstruct Wavelet Coefficients
Load a 1-D signal.
load sumsin s = sumsin;
Perform a level 5 wavelet decomposition of the signal using the
[c,l] = wavedec(s,5,'sym4');
Reconstruct the approximation coefficients at level 5 from the wavelet decomposition structure
a5 = wrcoef('a',c,l,'sym4');
Reconstruct the detail coefficients at level 2.
d2 = wrcoef('d',c,l,'sym4',2);
Plot the original signal and reconstructed coefficients.
subplot(3,1,1) plot(s) title('Original Signal') subplot(3,1,2) plot(a5) title('Reconstructed Approximation At Level 5') subplot(3,1,3) plot(d2) title('Reconstructed Details At Level 2')
type — Coefficients to reconstruct
Coefficients to reconstruct, specified as
'd', for approximation or detail coefficients,
wname — Analyzing wavelet
character vector | string scalar
Analyzing wavelet used to create the wavelet decomposition structure
[c,l], specified as a character vector or string
wrcoef supports only orthogonal or biorthogonal
LoR,HiR — Wavelet reconstruction filters
even-length real-valued vectors
Wavelet reconstruction filters, specified as a pair of even-length
LoR is the lowpass reconstruction
HiR is the highpass reconstruction filter.
The lengths of
HiR must be
wfilters for additional