I need to design a notch filter of 51 length to eliminate 60HZ interference with a sampling rate of 360Hz.
I have a ecg for my input but i don't know how to design a filter. All i was given was that the impulse response of an ideal filter is
h = 2*(sin(w0*n) / pi*n) - impulse
do i use butter or fir1 to get my filter and then use filter() to apply to input??