% auxiliary routine in gcvdemo
% removes the noise

wna = waveletcoef;
n = length(waveletcoef);
wna((2^(L)+1):n) = WST(waveletcoef((2^(L)+1):n),thrshld);

figure(2), subplot(1,1,1)
% plot(wna)
plotscales(wna(2:length(wna)),7,wm,wM);
title('The wavelet-coefficients after application of the threshold')

signal = IWT_BIO(wna,L,h,g,sh,sg);

figure(1), subplot(1,1,1), plot(signal)
axis([0,2048,-2,12])
title('The result')
figure(1)
