PDA

View Full Version : low pass filter with windowing method


dolly
23 Feb 2008, 02:02am
hi everyone,
im doing an assignment about developing an adaptive notch filter for the removal of 50hz noise from an ecg signal..im really not familiar with matlab but im learning..after i read about filters i decided to use low pass filter with windowing method..now ive tried tis low pass filter
fsamp = 60;
fcuts = [5 10];
mags = [1 0];
devs = [0.05 0.01];
[n,Wn,beta,ftype] = kaiserord(fcuts,mags,devs,fsamp);
hh = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale')
after that i really dont know how to continue the development..please guide me.
awaiting for ur reply
dolly

shwaip
23 Feb 2008, 02:28am
1) an adaptive notch filter is nowhere near a LPF based on the windowing method.
2) i can almost guarantee you don't want to use a LPF
3) ??
4) Profit.

dolly
23 Feb 2008, 12:41pm
1) an adaptive notch filter is nowhere near a LPF based on the windowing method.
2) i can almost guarantee you don't want to use a LPF
3) ??
4) Profit.


sir,can i give the input signal to the low pass filter and then directed to kaiser to eliminate the noise..is my method is correct?

shwaip
23 Feb 2008, 08:41pm
why are you low pass filtering the signal at all?

dolly
24 Feb 2008, 01:38am
what i understoodd was like that.that means i just can use the low pass filter isnt it..how i should call the signal to the low pass filter?

shwaip
24 Feb 2008, 01:59am
do you have the filter design toolkit? Try typing fdatool, and if it brings up a gui, you should be able to figure it out with that.

You want to create a notch filter, not a low pass filter. The idea is that you have 50Hz noise in your signal, so you want to get rid of just that noise without affecting the rest of the signal. If you use a low-pass filter, you will remove the 50Hz noise, but also anything above 50Hz.