0% found this document useful (0 votes)
18 views4 pages

Experiment 2

Uploaded by

mehwishbano9998
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)
18 views4 pages

Experiment 2

Uploaded by

mehwishbano9998
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
You are on page 1/ 4

Swami Keshvanand Institute of Technology, Management & Gramothan Ramnagaria

Jagatpura, Jaipur
Department of Electrical Engineering

Experiment :-2

Aim: Define system in TF, ZPK form.

Theory:-

Transfer Function:-

Transfer Function can be representing MATLAB as LTI(Linear Time Invariant) objects using

Numerator and polynomials consider the Transfer Function given by :-

( s + 1)
G (s) =
s + 3s + 1
2

It can be represented in MATLAB as:-


>> num=[1 1]

>> 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)

It can be represented in MATLAB as:-


>> n1=[5 1];
>> n2=[15 1];
>> d1=[1 0];
>> d2=[3 1];
>> d3=[10 1];
>> num=100*conv(n1,n2);
>> den=conv(d1,conv(d2,d3);
>> GH=tf(num,den)

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

You might also like