This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

waverec

1-D wavelet reconstruction

Syntax

X = waverec(C,L,Lo_R,Hi_R)
X = waverec(C,L,'wname')
X = appcoef(C,L,'wname',0)

Description

waverec performs a multilevel one-dimensional wavelet reconstruction using either a specific wavelet ('wname', see wfilters) or specific reconstruction filters (Lo_R and Hi_R). .

Note

waverec supports only Type 1 (orthogonal) or Type 2 (biorthogonal) wavelets.

X = waverec(C,L,'wname') reconstructs the signal X based on the multilevel wavelet decomposition structure [C,L] and wavelet 'wname'. (For information about the decomposition structure, see wavedec.)

X = waverec(C,L,Lo_R,Hi_R) reconstructs the signal X as above, using the reconstruction filters you specify. Lo_R is the reconstruction low-pass filter and Hi_R is the reconstruction high-pass filter.

Note that X = waverec(C,L,'wname') is equivalent to X = appcoef(C,L,'wname',0).

Examples

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

% Load original one-dimensional signal. 
load leleccum; s = leleccum(1:3920); ls = length(s); 

% Perform decomposition of signal at level 3 using db5. 
[c,l] = wavedec(s,3,'db5');

% Reconstruct s from the wavelet decomposition structure [c,l]. 
a0 = waverec(c,l,'db5');

% Check for perfect reconstruction. 
err = norm(s-a0)
err =
    3.2079e-09

Extended Capabilities

See Also

| |

Introduced before R2006a