The passbands and stopbands for the Signal Processing Toolbox filter functions are actually normalised to the closed interval [0, pi] radians. It is calculated as the passband and stopband frequency in Hz divided by the Nyquist frequency.
Example for frequency calculations for the filters your signal:
Ts = 0.002;
Fs = 1/Ts;
Fn = Fs/2;
Note that the highest frequency you can design in your filter is the Nyquist frequency, here 250 Hz.
An example of a Chebyshev Type II filter design for filtering an EKG signal is here:
Fs = 250;
Fn = Fs/2;
Wp = [1.0 100]/Fn;
Ws = [0.5 101]/Fn;
Rp = 10;
Rs = 50;
[n,Ws] = cheb2ord(Wp,Ws,Rp,Rs);
[z,p,k] = cheby2(n,Rs,Ws);
[sosbp,gbp] = zp2sos(z,p,k);
figure(3)
freqz(sosbp, 2^17, Fs)
EKG_filt = filtfilt(sosbp, gbp, EKG_original);
The filter passband goes from 1 Hz to 100 Hz.
Best Answer