I am attempting to filter a signal (p1) that seems to be contaminated with white noise. I am trying to constuct either a Butterworth or Chebyshev filter for this issue, but my plots are always severly distorted, or not visible at all. I want to filter between 0.05 and 10Hz. Below is my code (simplified), but I feel like I must be missing a step.
Fn = fs/2;
Wp = [0.05 10]/Fn;
Rp = 1;
[b,a] = cheby1(8,Rp,Wp);
P1 = filtfilt(b,a,p1);
figure()
plot(T1,P1)
Best Answer