2. Design a digital lowpass filter to meet the followingspecifications:
passband edge = 0:45Ï€
stopband edge = 0:5Ï€
Rp = 0.5 dB, As = 60 dB
a. Design a Buttterworth filter, you may use the butteworth andbutter commands to implement.
b. Design Chebyshev Type 1 filter ( use the equivalent commandsto above )
c. Design an Elliptic filter ( use the equivalent commands topart a ).
d. List the order of each filter and find the actual Rp and Asfor each filter. To find the ripple
and attenuation values you should use freqz to output the frequencyresponse h and frequency w
values to a vector at enough points , say 1000, then use the min ormax commands to find the
min or max in the passband or stopband range in the frequencyresponse. You may need to use
commands to convert to dB.
e. Plot the magnitude response (in dB) for all three filters onone plot and plot the phase
response for all three filters on another plot ( title the graph,label axes, and use a legend to
identity the filter )
Please include Matlab code. EVEN JUST PART AHELPS