Scilab Wavelet Toolbox Function
Last update : Feburary 2006
wrcoef - reconstruction from signal branch
Calling Sequence
-
cc=wrcoef(type,c,l,wavename,level,[extension_method])
Parameters
-
type
: Coefficient Type, Approximation or Detail
- 'a': approximation
- 'd': detail
-
c
: Coefficient Bunch Vector
-
l
: Coefficient Length Array
-
wavename
: wavelet name
- 'haar': haar wavelet
- 'db1': daubechies 1 wavelet, same with haar
- 'db2': daubechies 2 wavelet
- 'db3': daubechies 3 wavelet
- 'db4': daubechies 4 wavelet
- 'db5': daubechies 5 wavelet
- 'db6': daubechies 6 wavelet
- 'db7': daubechies 7 wavelet
- 'db8': daubechies 8 wavelet
- 'db9': daubechies 9 wavelet
- 'db10': daubechies 10 wavelet
-
level
: Decompostion Level of the coefficient you want
-
extension_method
: Signal Extension Method, default is 'symh'
- 'zpd': zero padding method
- 'ppd': period extension method
- 'asymh': half asymmetric extension method
- 'asymw': whold asymmetric extension method
- 'symh': half symmetric extension method
- 'symw': whole symmetric extension method
- 'sp0': border value constant extension method
- 'sp1': border value linear extension method
-
cc
: Reconstruction Result
Description
This function reconstructs the signal from coefficient branch
of coefficient bunch vector, on specific level approximation or detail. That is implemented by setting all other coefficients except the
coefficient specified, to zeros and doing the inverse transform.
Examples
-->sig=rand(1,64);
-->[c,l]=wavedec(sig,3,'db2','symh');
-->A1=wrcoef('a',c,l,'db2',1,'symh');
-->length(A1)
ans =
64.
-->d2=appcoef('d',c,l,'db2',2,'symh');
-->length(d2)
ans =
64.
See Also
appcoef
,
detcoef
,
appcoef2
,
detcoef2
,
wrcoef2