0% found this document useful (0 votes)
89 views7 pages

Pole-Zero & Frequency Response Analysis

This document describes an experiment using MATLAB to find the pole-zero plot and frequency response of a transfer function. It provides the aim of experiment, software used, names of student group members, MATLAB code used to input the transfer function coefficients, generate the pole-zero plot and frequency response plots, and concludes that the experiment found the pole-zero plot and frequency response of the given transfer function and theoretical analysis matched the results.

Uploaded by

LUKESH ankamwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views7 pages

Pole-Zero & Frequency Response Analysis

This document describes an experiment using MATLAB to find the pole-zero plot and frequency response of a transfer function. It provides the aim of experiment, software used, names of student group members, MATLAB code used to input the transfer function coefficients, generate the pole-zero plot and frequency response plots, and concludes that the experiment found the pole-zero plot and frequency response of the given transfer function and theoretical analysis matched the results.

Uploaded by

LUKESH ankamwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EXPERIMENT 5

Aim: To find pole-zero plot & frequency response of given


transfer function.

Software: MATLAB

Group Number 1:
1. Omkar Bhilare 191060901
2. Omkar Sargar 181060047
3. Om Fuke 181060046
4. Lukesh Ankamwar 181060038
Code :
disp("Pole-Zero Plot & Frequency Response")
num = input("Enter numerator coefficients")
denom = input("Enter denominator coefficients")

sys = filt(num,denom);
disp("Transfer Function:")
sys

disp("Roots of num:")
num_roots = roots(num)
denom_roots = roots(denom)
figure(1)
pzplot(sys)

w = -1.5*pi:pi/50:1.5*pi;

h = (freqresp(sys,w));
h_w = squeeze(freqresp(sys,w));
h_mag = abs(h_w);
h_phase = angle(h_w) * 180/pi;

figure(2)
title("Frequency Response")
subplot(2,1,1)
plot(w,h_mag);
grid on;
xticks([-2*pi -1.5*pi -pi -0.5*pi 0 0.5*pi pi 1.5*pi
2*pi])
xticklabels({'-2\pi', '-3\pi/2','-\pi','-
\pi/2','0','\pi/2','\pi','3\pi/2','2\pi'})
xlabel("frequency (w)");
ylabel("Magnitude Response");

subplot(2,1,2)
plot(w,h_phase);
grid on;
axis tight;
xticks([-2*pi -1.5*pi -pi -0.5*pi 0 0.5*pi pi 1.5*pi
2*pi])
xticklabels({'-2\pi', '-3\pi/2','-\pi','-
\pi/2','0','\pi/2','\pi','3\pi/2','2\pi'})
xlabel("frequency (w)");
ylabel("Phase Response");

Output:
Theoretical Analysis :
Conclusion: In this practical we have found pole-zero plot &
frequency response of given transfer function. We have also done
theoretical analysis of given transfer function to show our results
matches with practical analysis.

You might also like