Design a fifth-order analog Butterworth lowpass filter with a cutoff frequency of 2 GHz. Multiply by to convert the frequency to radians per second. Compute the frequency response of the filter at 4096 points.
Design a fifth-order Chebyshev Type I filter with a passband edge frequency of 2 GHz and 3 dB of passband ripple. Compute its frequency response.
Design a fifth-order Chebyshev Type II filter with a stopband edge frequency of 2.5 GHz and 30 dB of stopband attenuation. Compute its frequency response.
Design a fifth-order elliptic filter with the same passband and stopband edge frequencies, 3 dB of passband ripple, and 30 dB of stopband attenuation. Compute its frequency response.
Design a fifth-order Bessel filter with the same edge frequency. Compute its frequency response.
Plot the attenuation in decibels. Express the frequency in gigahertz. Compare the filters.
The Butterworth and Chebyshev Type II filters have flat passbands and wide transition bands. The Chebyshev Type I and elliptic filters roll off faster but have passband ripple. The frequency input to the Chebyshev Type II design function sets the beginning of the stopband rather than the end of the passband. Elliptic filters offer steeper rolloff characteristics than Butterworth and Chebyshev filters, but they are equiripple in both the passband and the stopband. Of these four classical filter types, elliptic filters usually meet a given set of filter performance specifications with the lowest filter order.
Plot the group delay in samples. Express the frequency in gigahertz and the group delay in nanoseconds. Compare the filters. The Bessel filter has approximately constant group delay along the passband.