MATLAB Answers

R2009a matlab code for laplace and inverse laplace

Asked by Lokman Abdullah on 27 Jun 2011

What is the matlab code to find laplace transform and inverse laplace of certain equation. I am using Matlab version R2009a. the matlab code availab in help file is for Matlab version R2011a. Please help.

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Paulo Silva
on 27 Jun 2011
 Accepted answer

You need the Symbolic Math Toolbox™

Examples on how to use the laplace function:

syms t
f = t^4
laplace(f)
syms s
g = 1/sqrt(s)
laplace(g)
syms t a x
f = exp(-a*t)
laplace(f,x)

Examples on how to use ilaplace

syms s
f = 1/s^2
ilaplace(f)
syms a t
g = 1/(t-a)^2
ilaplace(g)
syms x u
syms a real
f = 1/(u^2-a^2)
simplify(ilaplace(f,x))

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today