Professional Documents
Culture Documents
: 2019_EE_053
1
Name: Rimsha Parvaiz
2
Section: B
LAB 11
⦁ Write a MATLAB script to plot the poles, obtained from the function above.
Also, plot a circle of radius
3
Ω𝑐 on the same figure to verify that the poles indeed lie on this circle.
4
% Write your code here.
Task 2
A method to display the frequency-domain plots of analog filter is provided by the
function freqs_m, given below, which is a modified version of a function freqs
provided by MATLAB. This function computes the magnitude response in absolute as
well as in relative dB scale and the phase response.
⦁ Call the above function in a script file to plot the absolute and dB magnitude
response along with thephase response of the lowpass Butterworth filter
designed in Task 1.
zplane(b,a)
viscircles([0 0],5.9464e+06)
[db,mag,pha,w] = freqs_m(b,a,500)
subplot(3,1,1)
plot(w,db)
subplot(3,1,2)
plot(w,mag)
subplot(3,1,3)
plot(w,pha)
5
Task 3
Design, by hand, a discrete-time Butterworth filter with the following specifications:
𝜔𝑝 = 0.3𝜋, 𝜔𝑠 = 0.5𝜋, 𝑅𝑝 = 1 dB and 𝛿𝑠2 = 20 dBs.
Show your working in the space below.
6
⦁ Following the design procedure listed in Section 2.1.1, and using the MATLAB
functions butterap_design, u_buttap and bilinear, design the discrete-time
lowpass Butterworth filter, for specifications given in Task 3, in MATLAB,
i.e., compute its direct-form coefficients.
⦁ Use the function freqs_m to plot the absolute and dB magnitude responses
along with the phase response of the filter.