MATLAB Band stop filter? Filter Audio signal from single frequency How? Need help !

MATLAB Band stop filter? Filter Audio signal from single frequency How? Need help !



so i need to filter a frequency from an audio file

[y Fs]=wavread('Audio');%read the audio file
dt=1/Fs;% Fs is the sampling speed <==> Fs samplings per second
Y=fft(y)*dt;
Y=fftshift(Y);
w=-(Fs/2):Fs/(length(Y)-1):(Fs/2);
we want to filter a frequency (the noise in the signal). I found it to be f=2040Hz
Now I am obligated to use a built in filter (elliptic in my case) and this is what id did:
[b,a] = ellip(8,1,30,[f-100 f+100],'stop','s');

Y= filter(b,a,Y);

but when find the ifft of Y and play it using sound, i'm not getting anything that makes sense, the volume is too low and the only thing i can hear is the Noise frequency

SO can you please point out where's my error?And what am i missing?
Note : I am a total N00B in matlab, so please no alternative complexe methodes/codes.





No Answers Posted Yet.