Question
Using MATLAB technology
1. (20 points) Design an analog Butterworth LPF with a,--1 dB at ar = 20π rad/s, a,-40 dB at w 100n rad/s. (a) Determine the
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hello,
          Please find the answer attached as under. Please give a thumbs up rating if you find the answer useful! Have a rocking day ahead!

****************** Matlab Code ************


% For data sampled at 1000 Hz, design a lowpass filter with no more than 1 dB of ripple in a passband from 0 to 10 Hz,
% and at least 40 dB of attenuation in the stopband. Find the filter order and cutoff frequency.

Wp = 10/500;    % 20pi corresponds to 10Hz
Ws = 50/500;    % 100pi corresponds to 50Hz
clc
[n,Wn] = buttord(Wp,Ws,1,40)
%Specify the filter in terms of second-order sections and plot the frequency response.
[z,p,k] = butter(n,Wn);
sys = zpk(z,p,k,1/500)
sos = zp2sos(z,p,k);
freqz(sos,512,1000)
title(sprintf('n = %d Butterworth Lowpass Filter',n))
%%%%% high pass filter
[z1,p1,k1] = butter(n,Wn,'high');
sys1 = zpk(z1,p1,k1,1/500)
sos1 = zp2sos(z1,p1,k1);
figure;
freqz(sos1,512,1000)
title(sprintf('n = %d Butterworth Highpass Filter',n))

************** End of Code ***************

Output:

Order = 4, Cutoff = 0.0319 rad/s

sys =

                5.5214e-06 (z+1)^4
----------------------------------------------
(z^2 - 1.822z + 0.831) (z^2 - 1.917z + 0.9263)

Sample time: 0.002 seconds
Discrete-time zero/pole/gain model.

Transition band = 45Hz

High pass:

sys1 =

                 0.87736 (z-1)^4
----------------------------------------------
(z^2 - 1.822z + 0.831) (z^2 - 1.917z + 0.9263)

Sample time: 0.002 seconds
Discrete-time zero/pole/gain model.

*****************************************************************
PS: Please do not forget the thumbs up!

Add a comment
Know the answer?
Add Answer to:
Using MATLAB technology 1. (20 points) Design an analog Butterworth LPF with a,--1 dB at ar...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT