Вы находитесь на странице: 1из 2

Experiment No.

2 LAPLACE TRANSFORM USING MATLAB


2.1 Objective
To understand the Laplace transform and its implementation using MATLAB.
2.2 Laplace Transform Using MATLAB
You can compute Laplace transform using the symbolic toolbox of MATLAB. If you want to compute
the Laplace transform of 𝑥(𝑡)=𝑡, you can use the following MATLAB program.
>>syms f t >> f=t; >>laplace(f) ans =1/s^2 where f and t are the symbolic variables, f the function, t
the time variable.
2.3 Inverse Laplace Transform Using MATLAB
The command one uses to comput the inverse laplaceis ‘ilaplace’.One also needs to define the symbols
t and s. Lets calculate the inverse of the previous function F(s), 𝐹(𝑠)=(𝑠−5)𝑠(𝑠+2)2
>>syms t s
>> F=(s-5)/(s*(s+2)^2);
>>ilaplace(F)
ans =
-5/4+(7/2*t+5/4)*exp(-2*t)
>> simplify(ans)
ans =
-5/4+7/2*t*exp(-2*t)+5/4*exp(-2*t)
>> pretty(ans)
- 5/4 + 7/2 t exp(-2 t) + 5/4 exp(-2 t)
Which corresponds to f(t) 𝑓(𝑡)=−1.25+3.5𝑡𝑒−2𝑡+1.25𝑒−2𝑡
Alternatively one can write
>>ilaplace ((s-5)/(s*(s+2)^2))
2.4 Lab Tasks
Question 1
Find the Laplace Transform of following functions
1. 𝑔(𝑡)=5𝑡𝑒−5𝑡𝑢𝑠(𝑡)
Lab Manual Control Systems
Department of Electrical and Computer Engineering Page 16
2. 𝑔(𝑡)=(𝑡sin2𝑡+𝑒−2𝑡)𝑢𝑠(𝑡)
3. 𝑔(𝑡)=sin2𝑡cos2𝑡𝑢𝑠(𝑡)
4. 𝑔(𝑡)=5𝑒−2𝑡
5. 𝑔(𝑡)=0.0075−0.00034𝑒−2.5𝑡cos22𝑡+0.087𝑒−2.5𝑡sin22𝑡−0.0072𝑒−8𝑡
Question 2
Find the Inverse Laplace Transform of following transfer functions
1. 𝐺(𝑠)=1𝑠(𝑠+2)(𝑠+3)
2. 𝐺(𝑠)=10(𝑠+1)2(𝑠+3)
3. 𝐺(𝑠)=2(𝑠+1)𝑠(𝑠2+𝑠+2)
4. 𝐺(𝑠)=10(𝑠+2)𝑠(𝑠2+2𝑠+5)
5. 𝐺(𝑠)=2(𝑠+3)(𝑠+5)(𝑠+7)𝑠(𝑠+8)(𝑠2+10𝑠+100)

Вам также может понравиться