Você está na página 1de 12

Laboratory Exercise No.

3
Laplace and Inverse LaplaceTransformation Using Matlab

1. Objective:
The activity aims to introduce some Matlab commands that are useful when treating Laplace transforms..
2. Intended Learning Outcomes (ILOs):
The students shall be able to:
2.1 Understand laplace and inverse laplace transformation using Matlab.
2.2 Gain familiarity with laplace transforms.
3. Discussion:
Once a dynamic model has been developed, it can be solved for a variety of conditions that include
changes in the input variables or variations in the model parameters. The transient responses of the output
responses of the output variables are calculated by numerical integration after specifying both the initial
conditions and the inputs as functions of time.
Laplace transform is a mathematical tool which can significantly reduce the effort required to solve and
analyze linear differential equations. A major benefit is that this transformation converts ordinary differential
equations to algebraic equations, which can simplify the mathematical manipulations required to obtain a
solution or perform an analysis.
Laplace transform is used for solving differential and integral equations.

4. Resources:
Matlab
5. Procedure:

1. To obtain the laplace of f(t) = e2t + t – t2 using the command window, type the commands
>> syms t
>> exp(2*t) + t + t^2
>> F = laplace(f)
Show your output in Part 6 of this laboratory exercise.
2. To obtain the inverse laplace of F(s) = 2s / s2 + 1 using the command window, type the commands
>>syms s
>>F = 2*s / (s^2 + 1)
>> f = ilaplace(F)
Show your output in Part 6 of this laboratory exercise.
3. Obtain the inverse laplace of G(s) = 2 / s2 + 3s + 1. Show your matlab code and output in Part 6 of
this laboratory exercise.
4. To obtain the laplace transform of cosh(3t) + e-tsin(5t) using the command window, type the
commands
>> syms t
>> laplace(cosh(3*t) + exp(-t)*sin(5*t)
Show your output in Part 6 of this laboratory exercise.
5. Check the result in Procedure by finding the inverse function with the following codes
>>syms s
>>ilaplace(ans)
Show your output in Part 6 of this laboratory exercise.
1
6. Obtain the inverse laplace transform of r(s) = s + 2 / s3 + 10s2 + 29s + 20. Show your matlab code
and output in Part 6 of this laboratory exercise.
7. To make the expression more readable one can use the commands simplify and pretty. To obtain the
laplace of f(t) = -1.25 + 3.5te-2t + 1.25e-2t using command window, type the commands
>> syms t s
>> f = -1.25 + 3.5* exp(-2*t) + 1.25*exp(-2*t)
>>F=laplace(f,t,s)
Show your output in Part 6 of this laboratory exercise.
>>simplify(F)
Show your output in Part 6 of this laboratory exercise.
>>pretty(F)
Show your output in Part 6 of this laboratory exercise.
8. To obtain the inverse laplace of F(s) = ( s -5 ) / s (s + 2)2 using the command window, type the
commands,
>> syms t s
>> F = (s-5)/(s*(s+2)^2)
>> f = ilaplace(F)
Show your output in Part 6 of this laboratory exercise.
>> simplify(ans)
Show your output in Part 6 of this laboratory exercise.
>>pretty(ans)
Show your output in Part 6 of this laboratory exercise.
9. Obtain the inverse laplace of F(s) = 10(s+2) / s(s2 + 4s + 5). Show your matlab code and output in
Part 6 of this laboratory exercise.
10. Obtain the inverse laplace of Y(s) = (3s – 1) / (s2 + 3s +2). Show your matlab code and output in Part
6 of this laboratory exercise.
11. Obtain the inverse laplace of Y(s) = ( 2s2 + 3s - 1)/ ( s2 + 3s + 2). Show your matlab code and output
in Part 6 of this laboratory exercise.
12. Obtain the inverse laplace of Y(s) = ( 7s3 + 2s2 + 3s - 1)/( s2 + 3s + 2). Show your matlab code and
output in Part 6 of this laboratory exercise.
13. Obtain the inverse laplace of Y(s) = ( 2s2 + 3s - 1)/( s3 + 5s2 + 8s + 4). Show your matlab code and
output in Part 6 of this laboratory exercise.
14. To solve the differential equation y” – 6y’ + 8y = 0 , y(0) = -1, y’(0) = 2 by the laplace transform
method, using the command window, type the commands
>> syms s t Y
>> ode = ‘D( D(y) ) (t) – 6*D(y) (t) + 8*y(t) = 0 ’
Show your output in Part 6 of this laboratory exercise.
>> Lode = laplace(ode,t,s);
>> eqn = subs(Lode,{ ‘laplace(y(t),t,s)’, ‘y(0)’, ‘D(y) (0)’}, {Y, -1, 2})
Show your output in Part 6 of this laboratory exercise.
>> Y = solve(eqn,Y)
Show your output in Part 6 of this laboratory exercise.
>> y = ilaplace(Y,s,t)
Show your output in Part 6 of this laboratory exercise.
Make the expression more readable. Show your output in Part 6 of this laboratory exercise.

2
To see the behavior of the chemical process, type the commands
>> ezplot(y, [0 30])
Show your output in Part 6 of this laboratory exercise.

15. Obtain the solution of the differential equation y” + 9y = 6 cos (3t), y(0) = 0, y’(0) = 0 by the laplace
transform method.

3
Course: ECE 006 Feedback and Control Systems Laboratory Exercise No.: 3
Group No.: not applicable Section: CH42FB1
Group Members: Date Performed: July 8, 2017
Percil, Queenie Rose I. Date Submitted: July 15, 2017
Instructor:
Engr. Crispulo Maranan

6. Data and Results:

Procedure Output
1

4
6

5
8

6
10

11

12

7
13

14

8
15

9
7.Conclusion:
I therefore conclude that

10
8. Further Readings:
Seborg Dale E., Edgar, Thomas F., and Mellichamp Duncan A. (2004). Process Dynamics and
Control. Singapore: Wiley.
Knopf, F. C. (2012). Modeling, analysis and optimization of process and energy systems.Hoboken,
New Jersey: John Wiley and Sons.
Velten, K. (2009). Mathematical modeling and simulation: introduction for scientists and engineers.
Singapore: Wiley-VCH.
9. Assessment (Rubric for Laboratory Performance):
TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES
RUBRIC FOR MODERN TOOL USAGE
(Engineering Programs)
Student Outcome (e): Use the techniques, skills, and modern engineering tools necessary for engineering
practice in complex engineering activities.
Program: Chemical Engineering Course: CHE 506 Section: _______ ____Sem SY ________
Performance Unsatisfactory Developing Satisfactory Very Satisfactory Score
Indicators 1 2 3 4
1. Apply Fails to identify Identifies Identifies modern Recognizes the
appropriate any modern modern techniques and is benefits and
techniques, techniques to techniques but able to apply constraints of
skills, and perform fails to apply these in modern
modern discipline- these in performing engineering tools
tools to specific performing discipline-specific and shows
perform a engineering discipline- engineering task. intention to apply
discipline- task. specific them for
specific engineering engineering
engineering task. practice.
task.
2. Demonstrate Fails to apply Attempts to Shows ability to Shows ability to
skills in any modern apply modern apply fundamental apply the most
applying tools to solve tools but has procedures in appropriate and
different engineering difficulties to using modern effective modern
techniques problems. solve tools when solving tools to solve
and modern engineering engineering engineering
tools to problems. problems. problems.
solve
engineering
problems.
3. Recognize Does not Recognizes Recognizes the Recognizes the
the benefits recognize the some benefits benefits and need for benefits
and benefits and and constraints of and constraints of
constraints constraints of constraints of modern modern
of modern modern modern engineering tools engineering tools
engineering engineering engineering and shows and makes good
tools. tools. tools. intention to apply use of them for
them for
11
engineering engineering
practice. practice.
Total Score
Mean Score = (Total Score / 3)
Percentage Rating = (Total Score / 12) x 100%
Evaluated by: Engr. Crispulo G. Maranan June 31, 2017
Printed Name and Signature of Faculty Member Date

12

Você também pode gostar