MATLAB: Designing a chebyshev type 2 high pass filter

filterfrequency

Hello
I am trying to design a chebyshev type 2 filter to separate the body acceleration and gravity acceleration from my senor. This is what I am basing the design from with a stopband attenuation of 60 dB and stopband frequency of 0.4 Hz. My sensor (ICM20948) is sending out acceleration data at a rate around 56 HZ. This is what I have so far.
Fs=56% from my sensor
[b,a,c] = cheby2(9,0.04,60/1000,'high');
sos = zp2sos(b,a,c)
fvtool(sos)
Any help would be much appreciated

Best Answer

Start with the cheb2ord function to define all the variables appropriately.