Experiment 2
Experiment 2
Jagatpura, Jaipur
Department of Electrical Engineering
Experiment :-2
Theory:-
Transfer Function:-
Transfer Function can be representing MATLAB as LTI(Linear Time Invariant) objects using
( s + 1)
G (s) =
s + 3s + 1
2
>> den=[ 1 3 1]
>> G=tf (num,den)
Transfer function:
s+1
-------------
s^2 + 3 s + 1
>> zero(G)
ans =
-1
>> pole(G)
ans =
-2.6180
-0.3820
1|Page
Swami Keshvanand Institute of Technology, Management & Gramothan Ramnagaria
Jagatpura, Jaipur
Department of Electrical Engineering
>> zpk(G)
Zero/pole/gain:
(s+1)
-------------------
(s+2.618) (s+0.382)
Example :- The function conv has been used to multiply polynomials in the MATLAB session
for the file transfer function :
100(5s + 1)(15s + 1)
GH(s)=
s (3s + 1)(10 s + 1)
Transfer function:
7500 s^2 + 2000 s + 100
-----------------------
30 s^3 + 13 s^2 + s
>> zero(GH)
2|Page
Swami Keshvanand Institute of Technology, Management & Gramothan Ramnagaria
Jagatpura, Jaipur
Department of Electrical Engineering
ans =
-0.2000
-0.0667
>> pole(GH)
ans =
0
-0.3333
-0.1000
>> zpk(GH)
Zero/pole/gain:
250 (s+0.2) (s+0.06667)
-----------------------
s (s+0.3333) (s+0.1)
Example :-2
Transfer Function Can also be directly in polynomial form as we enter them in the
notebook using LTI object. Observe the following MATLAB session.
G1=150*(s^2+2*s+7)/(s*(s^2+5*s+4)
It can be represented in MATLAB as:-
>> n1=[1 2 7];
>> d1=[1 0];
>> d2=[1 5 4];
>> num=150*n1;
>> den=conv(d1,d2);
>> G1=tf(num,den)
Transfer function:
150 s^2 + 300 s + 1050
3|Page
Swami Keshvanand Institute of Technology, Management & Gramothan Ramnagaria
Jagatpura, Jaipur
Department of Electrical Engineering
----------------------
s^3 + 5 s^2 + 4 s
>> zero(G1)
ans =
-1.0000 + 2.4495i
-1.0000 - 2.4495i
>> pole(G1)
ans =
0
-4
-1
>> zpk(G1)
Zero/pole/gain:
150 (s^2 + 2s + 7)
------------------
s (s+4) (s+1)
4|Page