Restruction from single branch from multiple level decomposition
X=wrcoef(type,C,L,wname,[N]) X=wrcoef(type,C,L,Lo_R,Hi_R,[N])
approximation or detail, 'a' or 'd'.
wavelet name
vector of reconstructed coefficents
lowpass synthesis filter
highpass syntheis filter
coefficent array
length array
restruction level with length(L)-2>=N
wrcoef is for reconstruction from single branch of multiple level decomposition from 1-D wavelet coefficients. Extension mode is stored as a global variable and could be changed with dwtmode. If N is omitted, maximum level (length(L)-2) is used.
The wavelet coefficents C and L can be generated using wavedec.
x=rand(1,100); [C,L]=wavedec(x,3,'db2'); x0=wrcoef('a',C,L,'db2',2); // // wrcoef can be used to generate the detail and the approximation until the given level lvl=3;wname="db2"; X = wnoise(4,10,0.5); //doppler with N=2^10 and Noise [C,L] = wavedec(X,lvl,wname); A=zeros(lvl,length(X));D=zeros(A); for i = 1:lvl A(i,:) = wrcoef('a',C,L,wname,i); D(i,:) = wrcoef('d',C,L,wname,i); end scf();clf(); subplot(2,1,1) plot(X,'k') plot(A') subplot(2,1,2) plot(D'); | ![]() | ![]() |