2. Design a digital lowpass filter to meet the following specifications: passband edge = 0:45Ï€ stopband edge =...

60.1K

Verified Solution

Question

Electrical Engineering

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

Answer & Explanation Solved by verified expert
3.7 Ratings (678 Votes)
PartaMATLABCodeclcclear allclose allWp 045Ws 05Rp 05Rs 60N Wn buttordWp Ws Rp Rsb a butterN WnfprintfThe order of the Butterworth filter to meet the givenspecifications is d n Nw 0pi1000piH freqzb a wHdB 20log10absHHphase angleH180pisubplot211plotwpi HdB linewidth2gridxlabelNormalized Frequency times pi radsampleylabelMagnitude in dBtitleMagnitude Response of the Butterworth Filtersubplot212plotwpi Hphase linewidth2gridxlabelNormalized Frequency times pi radsampleylabelPhase in degreestitlePhase Response of the Butterworth FilterAfter Execution we getIn the command window the order required is displayedThe order of the Butterworth filter to meet thegiven specifications is 51The frequency response plot obtained for the Butterworth Filteris as followsPartbMATLABCodeclcclear allclose allWp 045Ws 05Rp 05Rs 60N Wn cheb1ordWp Ws Rp Rsb a cheby1N Rp WpfprintfThe order of the Chebyshev Type I filter to meet thegiven specifications is d n Nw 0pi1000piH freqzb a wHdB 20log10absHHphase angleH180pisubplot211plotwpi HdB linewidth2gridxlabelNormalized    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students