Why do spikes in the negative range disappear after filtering with filtfilt?
6 views (last 30 days)
Hello, I am trying to filter signals from neuron cells using filtfilt in Matlab. However, once I use the filter, the spikes in the negative range disappear. Figure 1 is how the filtered signal should look like and Figure 2 is how the filtered signal looks like after applying the filtfilt along with my code. I'm also attaching the complete matlab file. Could someone please let me know what is wrong with my code?
Dave B on 3 Aug 2021
Your tutorial looks amazing!
I suspect this isn't the fact that they're negative, to check that: can you multiply the values by -1 and see if the problem reverses? Could it be that the bandwidth of the negative-going part and the bandwidth of the positive-going part are different and the negative going part is outside of the filter range?