I need to filter highly noisy signals (at a sample rate of 2000 Hz).
When applying the code:
order = 2; Fcutoff = 4Hz; Fs = 2000 Hz; x = Non filtered signal as a double vector;
The output filtered signals appear to have (only for some cases) and initial and end artifact, where they tend to deviate upwards or downwards (only at the edges of the filtered signal).
What is the data that is being processed by the filter at the edges?
How can I know how many data points are being used in this process?
Is there a clean way to tackle this problem?