Professional Documents
Culture Documents
LAB: 12
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)
OUTPUT:
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:
1
10
0
Magnitude
10
-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)
OUTPUT:
a) B)
OUTPUT: