Let us consider following code:
fs=100; N=1000; t=0:1/fs:N-1; y=10*sin(2*pi*100*t)+0.5*randn(size(t)); plot(y) plot(t,y)
I have applied following threshold methods:
thr = 0.4; % Perform hard thresholding. ythard = wthresh(y,'h',thr);
But I can't see any difference, also soft threshold method,codes are below:
ythard = wthresh(y,'h',thr); plot(ythard) ytsoft = wthresh(y,'s',thr); plot(ytsoft)
So what is wrong? I have also done thresholding time domain without calculation of the wavelet coefficients. Are they equal to each other? I mean if I will generate wavelet coefficients and threshold this coefficients, will they give me same result?
Thanks in advance.