Lab. No.
12
Plotting of Z-plane, poles-zeros of a Transfer function and finding of Transfer function
from poles and zeros values in Matlab
Lab. Objective: To obtain simulation knowledge of transfer function of a system, poles zeros and
plotting of poles zeros, finding transfer function from poles and zeros values in Matlab.
Tools: PC, Matlab.
Theory: Transfer function of a system is the ratio of output of a system to input of a system. In the
transfer function numerator contain zeros of the system and denominator contains poles of a system.
Poles: poles are the values of Z transform variable Z in the denominator of transfer function for which
the system transfer become equal to to infinity and system become unstable.
Zeros: zeros are the values of Z transform variable Z in the numerator of transfer function for which the
system transfer become equal to zero.
Plotting of poles and zeros:
Matlab Code:
%poles zeros plotting of a system transfer function%
%T.F=s+1/s+2;
num=[1 1];%defining numerator of transfer function
den=[1,2];%defining denominator of transfer function
zplane(num, den)%plotting poles and zeros
legend('poles zeros of transfer function')%Matlab built-inn command for labelling
grid on% Matlab built-inn command for line son the graph
poles zeros of transfer function
1
0.5
Imaginary Part
-0.5
-1
-2 -1.5 -1 -0.5 0 0.5 1
Real Part
Plotting of poles and zeros:
Matlab Code
%poles zeros plotting of a system transfer function%
%T.F=3*s^3+6*s^2+s+1/4*s^2+5*s+2;
num=[3 6 1 1];%defining numerator of transfer function
den=[4 5 2];%defining denominator of transfer function
zplane(num, den)%plotting poles and zeros
legend('poles zeros of transfer function')%Matlab built-inn command for labelling
grid on% Matlab built-inn command for line son the graph
poles zeros of transfer function
1
0.5
Imaginary Part
-0.5
-1
-2 -1.5 -1 -0.5 0 0.5 1
Real Part
Plotting of poles and zeros of a transfer function
Matlab Code:
%poles zeros plotting of a system transfer function%
%T.F=3*s^5+6*s^4+s^3+12*s^2+s+7/13*s^5+5*s^4+3*s^3-2;
num=[3 6 4 12 1 7];%defining numerator of transfer function
den=[13 5 4 1 -2];%defining denominator of transfer function
zplane(num, den)%plotting poles and zeros
legend('poles zeros of transfer function')%Matlab built-inn command for labelling
grid on% Matlab built-inn command for line son the graph
poles zeros of transfer function
0.5
Imaginary Part
-0.5
-1
-2 -1.5 -1 -0.5 0 0.5 1
Real Part
Finding Transfer Function from Poles and zeros values
%Finding transfer function from poles and zeros values%
z=[4 2 4];%defining zeros of transfer function
p=[3 6 7 4]%defining zeros of transfer function
h=tf(z,p)%finding transfer function from poles and zeros
Transfer function:
4 s^2 + 2 s + 4
-----------------------
3 s^3 + 6 s^2 + 7 s + 4
Finding Transfer Function from Poles and zeros values
%Finding transfer function from poles and zeros values%
num=[10 3 5 5 9];%defining zeros of transfer function
den=[7 6 6 4 2]%defining zeros of transfer function
h=tf(z,p)%finding transfer function from poles and zeros
Transfer function:
4 s^2 + 2 s + 4
-----------------------
3 s^3 + 6 s^2 + 7 s + 4