{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Laplace using Matlab

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

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

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

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

View Full Document
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

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern