I am new to signal processing and examine ECG data corrupted with noise. The clean data has a frequency spectrum like this.
And the corrupted one looks like this (sorry for the different scale)
I am asked to find a FIR band pass filter in matlab to filter out the noise. Unfortunatly I am using filters for the first time so I played with the coefficients and found something like this (The only thing that seems to be clear to me is that the bandpass has to be between something like 1-30 but I have trouble choosing the other parameters.) Fstop1 = 0.01 Fpass1 = 3 Fpass2 = 25 Fstop2 = 60 Astop1 = 80 Apass = 1 Astop2 = 30 Fs = 250
The result is not 100% satisfying (I am still having a lot of baseline fluctuations). Is it possible to get "good" results in doing this? Can anybody see heavy mistakes in my parameters that could lead to problems? Or can anyone tell me better coefficients to use?