Laplace Transform in MATLAB
Last Updated :
21 Apr, 2021
In this article, we will see how to find Laplace Transform in MATLAB. Laplace Transform helps to simplify problems that involve Differential Equations into algebraic equations. As the name suggests, it transforms the time-domain function f(t) into Laplace domain function F(s).
Using the above function one can generate a Laplace Transform of any expression.
Example 1: Find the Laplace Transform of .
Matlab
syms a t s
f=cos(a*t);
F=laplace(f,t,s);
disp( 'Laplace Transform of cos(at):' )
disp(F);
|
Output:
Example 2: Find the Laplace Transform of a particular expression i.e. 1+2e^{(-t)}+3e^{(-2t)}.
Matlab
syms a t s e
f=1+2*exp(-t)+3*exp(-2*t);
F=laplace(f,t,s);
disp( 'Laplace Transform of 1+2e^{(-t)}+3e^{(-2t)}:' )
disp(F);
|
Output:
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...