Program Code
%Plotting zeros and poles of z-transformclc;
close all;
clear all;
disp('For plotting poles and zeros');
b=input('Input the numerator polynomial coefficients');
a=input('Input the denominator polynomial coefficients');
[b,a]=eqtflength(b,a);
[z,p,k]=tf2zp(b,a);
zplane(z,p);
disp('zeros');
disp(z);
disp('poles');
disp(p);
disp('k');
disp(k);
Example of Output
For plotting poles and zerosInput the numerator polynomial coefficients[1 2 3 4]
Input the denominator polynomial coefficients[1 2 3]
zeros
-1.6506
-0.1747 + 1.5469i
-0.1747 - 1.5469i
poles
0
-1.0000 + 1.4142i
-1.0000 - 1.4142i
k
1
________________________________