0% found this document useful (0 votes)
44 views5 pages

LAB 11 OBJECT: Analysis of Laplace Transform in Matlab. TASK: 01 Source Code

This document summarizes tasks completed in MATLAB to analyze Laplace transforms. It: 1) Finds zeros and poles of transfer functions using the roots command and plots them. 2) Evaluates the frequency response of Laplace transforms using frequency commands. 3) Finds the inverse Laplace transform of functions using the ilaplace command. 4) Calculates the Laplace transform of various functions using the laplace command.

Uploaded by

SaRosh Raees
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views5 pages

LAB 11 OBJECT: Analysis of Laplace Transform in Matlab. TASK: 01 Source Code

This document summarizes tasks completed in MATLAB to analyze Laplace transforms. It: 1) Finds zeros and poles of transfer functions using the roots command and plots them. 2) Evaluates the frequency response of Laplace transforms using frequency commands. 3) Finds the inverse Laplace transform of functions using the ilaplace command. 4) Calculates the Laplace transform of various functions using the laplace command.

Uploaded by

SaRosh Raees
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

LAB 11

OBJECT: Analysis of laplace transform in matlab.


TASK: 01
Find out zeroes and poles of the following transfer function by using roots command.
SOURCE CODE:
1.
n=[1 5]
d=[1 2 3]
x=tf(n,d)
y=roots (n)
z=roots (d)
pzmap(n,d)
n=
1 5
d=
1 2 3
x=
s+5
-------------
s^2 + 2 s + 3
Continuous-time transfer function.
y=
-5
z=
-1.0000 + 1.4142i
-1.0000 - 1.4142i
Pole-Zero Map
1.5

1
Imaginary Axis (seconds -1)

0.5

-0.5

-1

-1.5
-5 -4.5 -4 -3.5 -3 -2.5 -2 -1.5 -1 -0.5 0
Real Axis (seconds -1)
2.
> n=[2 5 12]
d=[1 2 10]
x=tf(n,d)
y=roots (n)
z=roots (d)

SSUET Page 1
pzmap(n,d)
x=
2 s^2 + 5 s + 12
----------------
s^2 + 2 s + 10

Continuous-time transfer function.


y=

-1.2500 + 2.1065i
-1.2500 - 2.1065i
z=

-1.0000 + 3.0000i
-1.0000 - 3.0000i
Pole-Zero Map
4

2
Imaginary Axis (seconds
-1
)

-1

-2

-3

-4
-2 -1.5 -1 -0.5 0 0.5 1
Real Axis (seconds-1)

3.
n=[2 5 12]
d=[1 2 10 2 4 40]
x=tf(n,d)
y=roots (n)
z=roots (d)
pzmap(n,d)

SSUET Page 2
Pole-Zero Map
3

2
Imaginary Axis (seconds-1)

-1

-2

-3
-1.4 -1.2 -1 -0.8 -0.6 -0.4 -0.2 0
Real Axis (seconds-1)

n=
2 5 12

d=
1 2 10 2 4 40
x=

2 s^2 + 5 s + 12
---------------------------------------
s^5 + 2 s^4 + 10 s^3 + 2 s^2 + 4 s + 40

Continuous-time transfer function.


y=

-1.2500 + 2.1065i
-1.2500 - 2.1065i
z=

-1.0476 + 3.0779i
-1.0476 - 3.0779i
-1.6051
0.8501 + 1.2786i
0.8501 - 1.2786i
TASK: 02
Use frequency commands to evaluate the frequency response of laplace transform.
SOURCE CODE:
n=[1 2 17]
d=[1 4 104]
x=tf(n,d)

SSUET Page 3
freqs(n,d)

Result:
n = 1 2 17
d = 1 4 104
x = s^2 + 2 s + 17
---------------
s^2 + 4 s + 104

10 1
Magnitude

10 0

10 -1

10 -2
10 -1 10 0 10 1 102
Frequency (rad/s)
150
Phase (degrees)

100

50

0
10 -1 10 0 10 1 102
Frequency (rad/s)
TASK: 03
Use ILaplace command to find inverse laplace transform.
SOURCE CODE:
1.
syms s
f = 1/[s*(s+2)*(s+3)]
ilaplace(f)

Result:
f = 1/(s*(s + 2)*(s + 3))
ans = exp(-3*t)/3 - exp(-2*t)/2 + 1/6
2.
syms s
f = 10/[(s+1)^2 *(s+3)]
ilaplace(f)

SSUET Page 4
f = 10/((s + 1)^2*(s + 3))
ans = (5*exp(-3*t))/2 - (5*exp(-t))/2 + 5*t*exp(-t)
3.
syms s
f = 2*(s+1)/[s*(s^2+s+2)]
ilaplace(f)

f =(2*s + 2)/(s*(s^2 + s + 2))


ans = 1 - exp(-t/2)*(cos((7^(1/2)*t)/2) - (3*7^(1/2)*sin((7^(1/2)*t)/2))/7)

TASK: 04
Find out laplace transform of the following function.
SOURCE CODE:
1.
w=10
t=0.1
syms t
f = sin(w*t)
laplace(f)

f =sin(10*t)
ans =10/(s^2 + 100)

2.
w=10
t=0.1
syms t
f =-1.25 + 3.5*t*exp(-2*t) +1.25*exp(-2*t)
laplace(f)

f =(5*exp(-2*t))/4 + (7*t*exp(-2*t))/2 - 5/4


ans = 5/(4*(s + 2)) + 7/(2*(s + 2)^2) - 5/(4*s)

SSUET Page 5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy