1-D wavelet reconstruction
Load a signal. Perform a level 3 wavelet decomposition of the signal using the
load leleccum wv = 'db6'; [c,l] = wavedec(leleccum,3,wv);
Reconstruct the signal using the wavelet decomposition structure.
x = waverec(c,l,wv);
Check for perfect reconstruction.
err = norm(leleccum-x)
err = 1.0084e-09
wname— Analyzing wavelet
Analyzing wavelet, specified as a character vector or string scalar.
waverec supports only Type 1 (orthogonal) or Type
2 (biorthogonal) wavelets. See
wfilters for a list of
orthogonal and biorthogonal wavelets.
LoR,HiR— Wavelet reconstruction filters
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
x— Reconstructed signal
Reconstructed signal, returned as a real-valued vector.
 Daubechies, I. Ten Lectures on Wavelets, CBMS-NSF Regional Conference Series in Applied Mathematics. Philadelphia, PA: SIAM Ed, 1992.
 Mallat, S. G. “A Theory for Multiresolution Signal Decomposition: The Wavelet Representation,” IEEE Transactions on Pattern Analysis and Machine Intelligence. Vol. 11, Issue 7, July 1989, pp. 674–693.
 Meyer, Y. Wavelets and Operators. Translated by D. H. Salinger. Cambridge, UK: Cambridge University Press, 1995.
Usage notes and limitations:
wname must be constant.