Laplace using Matlab

Laplace using Matlab - by hand in the lecture notes. ....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Laplace Transforms and Inverse Laplace Transforms Using Matlab Matlab has the ability of finding the transforms using the laplace (*) and ilaplace (*) functions. First: Any symbolic variables need to be defined using the syms . laplace() will look for the varialbe t and return the transform in s. Here are two examples below: >> syms b t >> laplace(t^3) ans = 6/s^4 >> laplace(exp(-b*t)) ans = 1/(s+b) Matlab can return the inverse Laplace transform using ilaplace(). Ilaplace() will look for a variable s and return the transform in t. Here is the example we did
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: by hand in the lecture notes. . >> syms b s >> ilaplace(s/((s+1)*(s^2+2*s+5))) ans = -1/4*exp(-t)+1/4*exp(-t)*cos(2*t)+1/2*exp(-t)*sin(2*t) You can see that f(t) is not identical as the one we did in class, but using simple trig identities, we can make it look identical. That is not really a concern. What is useful is observing the plot of >> t1 = 0:.01:10; >> f = -1/4*exp(-t1)+1/4*exp(-t1).*cos(2*t1)+1/2*exp(-t1).*sin(2*t1); >> plot(f) Here we see that the system returns to a relaxed state in about 6 seconds....
View Full Document

This note was uploaded on 02/06/2012 for the course EE 2120 taught by Professor Aravena during the Fall '08 term at LSU.

Page1 / 2

Laplace using Matlab - by hand in the lecture notes. ....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online