5.0

5.0 | 1 rating Rate this file 64 Downloads (last 30 days) File Size: 176 KB File ID: #39035
image thumbnail

Numerical Inverse Laplace Transform

by Tucker McClure

 

04 Jan 2013

Numerical approximation of the inverse Laplace transform for use with any function defined in "s".

| Watch this File

File Information
Description

This set of functions allows a user to numerically approximate an inverse Laplace transform for any function of "s". The function to convert can be passed in as an argument, along with the desired times at which the function should be evaluated. The output is the response of the system at the requested times.

For instance, consider a ramp function.
f = @(s) 2/s^2;
t = [1 2 3 4 5]';
talbot_inversion(f, t)

The time response output is [2 4 6 8 10], as expected.

These methods can be used on problems of considerably more difficulty as well and are intended to approximate an inverse Laplace transform where an exact solution is unknown.

Two basic solvers (Euler and Talbot) are included, along with *symbolic* versions of those solvers. The symbolic solutions take substantially longer to calculate, but are capable of any desired accuracy. Also, the symbolic versions require the Symbolic Toolbox, whereas the basic versions do not.

Please see example_inversions.pdf or html/example_inversions.html to get started!

Required Products Symbolic Math Toolbox
MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
control design, euler, frequency domain, ifft, inverse laplace transform, laplace, modeling, s domain, symbolic, talbot
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
26 Apr 2013 Lee  
15 Mar 2013 Tucker McClure

Hi Mohamed,

No, this is for continuous time only. However, Dr. Dan Ellis of Columbia University has an example of a numerical inverse z-transform written in MATLAB located here: http://www.ee.columbia.edu/~dpwe/e4810/matlab/s10/html/eval_z_transf.html

Note that this type of inversion is notoriously tricky to do numerically, as it requires very precise numbers. Working with the Symbolic Toolbox allows you to request arbitrary precision (e.g., 64 digits of precision).

Hope that helps!

- Tucker

15 Mar 2013 Mohamed Yassin OUKILA

Can we apply these functions to a discrete function?
Thank you :)

20 Feb 2013 abdo mecha

THAANKS

Contact us