0 оценок0% нашли этот документ полезным (0 голосов)
10 просмотров2 страницы
This document discusses using MATLAB to compute Laplace transforms and inverse Laplace transforms. It shows how to use the laplace and ilaplace commands to find the Laplace transform of t, equal to 1/s^2, and the inverse Laplace transform of (s-5)/(s(s+2)^2), equal to -5/4+7/2t*exp(-2t)+5/4*exp(-2t). It then provides examples of finding the Laplace and inverse Laplace transforms of various functions.
This document discusses using MATLAB to compute Laplace transforms and inverse Laplace transforms. It shows how to use the laplace and ilaplace commands to find the Laplace transform of t, equal to 1/s^2, and the inverse Laplace transform of (s-5)/(s(s+2)^2), equal to -5/4+7/2t*exp(-2t)+5/4*exp(-2t). It then provides examples of finding the Laplace and inverse Laplace transforms of various functions.
This document discusses using MATLAB to compute Laplace transforms and inverse Laplace transforms. It shows how to use the laplace and ilaplace commands to find the Laplace transform of t, equal to 1/s^2, and the inverse Laplace transform of (s-5)/(s(s+2)^2), equal to -5/4+7/2t*exp(-2t)+5/4*exp(-2t). It then provides examples of finding the Laplace and inverse Laplace transforms of various functions.
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)