I want to generate a very simple Filter which removes the noise at-least little bit from a signal (Sinusoidal of 100Hz Frequency).
I don't want to use the complex filter's.
this is my Signal
Code:
fSampling = 10000; %Sampling Frequency
tSampling = 1/fSampling; %Sampling Time
L = 10000; %Length of Signal
t = (0:L-1)*tSampling; %Time Vector
F = 100; %Frequency of Signal
%%Signal without noise
xsig = sin(2*pi*F*t);
I calculate its Fourier Transform as Follow:-
Code:
NFFT = 2^nextpow2(L);
Xsig = fft(xsig,NFFT)/L;
f1 = fSampling/2*(linspace(0,1,NFFT/2+1));
plot(f1,2*abs(Xsig(1:NFFT/2+1)),'r');
grid on
axis([-50 500 0 1.1])
title('\itSingle-Sided Amplitude Spectrum of xsig(t)')
xlabel('\itFrequency (Hz) \rightarrow')
ylabel('|Xsig(f)| \rightarrow');
Then i add a Little bit of Noise into it as follow:-
Code:
xnoise = xsig + 0.45*randn(size(t));
Then calculates its Fourier Transform again...
Now i want to remove the noise from this signal and want to retrieve a pure sinusoidal signal..
Look at my thread and see if it is of any help to you. I needed some filtering done aswell. I imported a sound clip and used a butterworth filter to get rid some high freq noise. I had the code right, just used the wrong .wav file https://www.edaboard.com/threads/258701/
Look at my thread and see if it is of any help to you. I needed some filtering done aswell. I imported a sound clip and used a butterworth filter to get rid some high freq noise. I had the code right, just used the wrong .wav file https://www.edaboard.com/threads/258701/
I am not able to get much...
As i am new to this...
If possible can you do it for me... i just want to retrieve my sine wave back...
Please taking it as my base i can move towards more complex problems......
I searched internet and found some tutorial and then uses a low-pass filter(Butterworth)
Don't know why (means i know a low pass filter can also serve the purpose to remove the noise but when i used a band pass filter it just produces something else)