I'm trying to create both a Chebychev Type 1 and Butterworth Notch filter. The filters have to produce a min attenuation of 60dB at 10Hz, with a rippe of .01dB. However, I keep getting a syntax error that I'm confused with: "The cutoff frequencies must be within the interval of (0,1)."
I guess I'm confused on how to interpret this information into code, along with filtfilt and fvtool. Is this the expected value?
fs = 200;
Ts = 1/fs;
t = 0:Ts:9.9950;
x = load("data2.txt");
b = cheby1(2,.01,.1)
x2 = filtfilt(b,1,x)
I'm assuming if I'm on the right track with cheby1, butterworth should be similar.