

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions on how to calculate laplace transforms and inverse laplace transforms using matlab in the context of control systems. It includes examples of finding laplace transforms of various functions, defining transfer functions, and using the inverse laplace transform to find time-domain responses. Students will learn how to use matlab to perform these calculations and understand the concepts behind them.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Objective: The main objective of this lab is to make the students understand how we can calculate the Laplace transform and inverse Laplace transform. While calculating the inverse Laplace transform we often need to solve the partial fractions. Matlab has a command to obtain the partial fraction expansion of a function in the form B(s)/A(s).
LAPLACE TRANSFORM To find the Laplace transform of a function f(t) we know that:
∞
0
In Matlab we can use just one command laplace(f(t)) to calculate the Laplace transform. Example
syms t //define a symbolic object y=t y = t
laplace(t) ans =
1/s^
Lab Task 1: Find the Laplace transform of the following functions.
DEFINING A TRANSFER FUNCTION To define a transfer function in Matlab we can use the command tf to declare a transfer function. (Note: tf stands for transfer function)
syms s A=[1 1 0] //where 1,1 and 0 are the coefficients of the denominator
A =
1 1 0
B=[2 1] //where 2 and 1 are the coefficients of the numerator
B =
2 1
G=tf(B,A)
Transfer function: B 2 s + 1 --- = ---------- A s^2 + s
Task 2: Define the following transfer functions in Matlab.
2 ( 1 )
s
s s As
Bs
3 2
5 4 3 2 s s s
s s s s s As
Bs
s s s s
s s As
Bs 12 44 48
4 3 2
2
To find the inverse Laplace Transform of a function F(s) we can use the command ilaplace in Matlab.
Find the inverse laplace transform of the following functions.
s s As
Bs 12 44 48
4 3 2
2
ss s
s As
Bs
MATLAB has a command to obtain the partial fraction expansion of B(s)/A(s) to obtain the poles and zeros of B(s)/A(s).
Consider the following functions B(s)/A(s)
n n n
n n n s as a
bs bs b As
B s
−
− ...
1 1
1 0 1
[R,P,K]=residue(B,A) finds the residues, poles and direct term of a partial fraction expansion of the ratio of two polynomials B(s)/A(s).
If there are no multiple roots,