triquent
Full Member level 3
I was asked to design a low pass filter that would attenuate the aliased frequencies by at least 60dB. I am using the fir1(n, wn) function. But no matter how I adjust the order n and corner/cutoff frequency wn, I can not make the attenuation less than 60dB, the highest point of the stop-band ripple is always around -52dB. The lowest point of the ripple is about -80dB. I am wondering if I should look at the middle of the stop-band ripple, then the attenuation is larger than 60dB compared to the pass band 0dB. Am I right? Or how to change the order and corner frequency to make the attenuation larger than 60dB?