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.