You are on page 1of 5

Signal & System LAB#12 2018-EE-17

Object: Analysis of Laplace transform on matlab.


Task#1: Find out poles and zeroes of following transfer fumction by using roots command and also
plotthem by using pzmap.

i- H(z)=s+5/s2+5s+3
ii- H(z)=2s2+5s+12/s2+2s+10
iii- H(z)=2s+5s+12/(s2+2s+10)(s+2)

Code:
i- num=[1 5]
dem=[1 5 3]
sys=tf(num,dem)
roots(dem)
roots(num)
pzmap(sys)

ii- num=[2 5 12]


dem=[1 2 10]
sys=tf(num,dem)
roots(dem)
roots(num)
pzmap(sys)

iii- num=[2 5 12]


dem=[1 4 12 20]
sys=tf(num,dem)
roots(dem)
roots(num)
pzmap(sys)

OUTPUT:

Sir Syed University Of Engineering And Technology Page 1


Signal & System LAB#12 2018-EE-17

Task#2: Use “freqs” command to evaluate the frequency response of a laplace transform
H(z)=s2+2s+17/s2+4s+104
Code:
num=[1 2 17]
dem=[1 4 104]
w=linspace(-20,20,200)
freqs(num,dem,w)

OUTPUT:

Sir Syed University Of Engineering And Technology Page 2


Signal & System LAB#12 2018-EE-17

1
10

0
10
Magnitude

-1
10

-2
10
0 1
10 10
Frequency (rad/s)

150
Phase (degrees)

100

50

0
0 1
10 10
Frequency (rad/s)

Task#3: Find out laplace transform of the following by using laplace command
a) sin(wt)
b) f(t) -1.25+3.5E-2t+1.2e-2t

Code:
a) syms w t
x=sin(w*t)
y=laplace(x)
b) syms w t
x=-1.25+3.5*t*exp(2*t)+1.2*exp(-2*t)
y=laplace(x)

Sir Syed University Of Engineering And Technology Page 3


Signal & System LAB#12 2018-EE-17

OUTPUT:

a)

b)

Task#4: Use ilaplace command to find the inverse laplace of following


i- H(s)=1/s(s+2)(s+3)
ii- H(s)=10/(s+1)^2(s+3)
iii- H(s)=2(s-1)/s(s2+s-2)

Code:
i- syms s
x=1/s*(s+2)*(s+3)
y=ilaplace(x)
ii- syms s

Sir Syed University Of Engineering And Technology Page 4


Signal & System LAB#12 2018-EE-17

x=10/(s+1)^2*(s+3)
y=ilaplace(x)
iii- syms s
x=2*(s-1)/s*(s^2+s-2)
y=ilaplace(x)

OUTPUT:

Sir Syed University Of Engineering And Technology Page 5

You might also like