Design a 30th-order high-pass FIR filter whose cutoff frequency is 2.5 kHz using the following window
functions (fir1). Assume that the sampling frequency is 8 kHz.
(a) Hanning window function
(b) Hamming window function
(c) Blackman window function
Plot the filter coefficients for each design (stem) and compare the magnitude frequency responses
(freqz o fvtool).
Use function designfilt to design a minimum-order lowpass FIR filter with a passband frequency of
0.5 rad/sample, a stopband frequency of 0.7 rad/sample, a passband ripple of 1 dB and a stopband
attenuation of 80 dB. Use functions filtord and info to determine the order of the filter and the design
algorithm, respectively. Plot the frequency response of filter (freqz o fvtool).
. Use function butter to design a Butterworth lowpass filter with a passband frequency of 0.5
rad/sample. Use the order obtained in problem 3. Compare the frequency response of both filters (freqz
o fvtool).
. Use function designfilt to design a minimum-order Butterworth high-pass filter with passband
frequency 300 Hz, stopband frequency 100 Hz, maximum passband ripple 1 dB, and 60 dB stopband
attenuation. The sample rate is 2 kHz. Afterwards, design Chebyshev Type I and Type II filters with
the same specifications as the Butterworth filter above. Compare their order (filtord) and frequency
response (freqz o fvtool).
Matlab code