Activity 2: Laplace and Inverse Laplace Transform Using Matlab
Activity 2: Laplace and Inverse Laplace Transform Using Matlab
College of Engineering
Electronics Engineering Department
Grades:
Base Points: 50
Creating Commands (15):
MATLAB Responses (15):
Answer to Questions (10):
Neatness (5):
Punctuality (5):
2
¿¿
Question:
1.What happen to the equation after the pretty function?
Using the “pretty” function makes the function literally pretty.
Compared to the first font, it is much easier to read and observe the
equation that you are typing with this pretty function command.
2.What happen to the equation after the simplify function?
As the word itself suggest, using the simplify command makes the
equation in the MATLAB in its simplest form. It is what most of our
professor requires in order to see whether a complex function can be
simplified to solve and to better understand it.
2∗¿ ¿
A. Now, create a command that will perform the Laplace Transform of the equation below:
f 6 ( t )=e4 t +sin sin ( t−2 ) +t 2 e−2 t
» syms t
» f6=(exp(4*t))+(sin(t-2))+((t^2)*(exp(-2*t)));
» F6=laplace(f6)
F6 = ¿ ¿
B. Now, create a command that will perform the Laplace Transform of the equation below:
f 7 ( t )=t sin sin (2 t )+ e−2 t
» syms t
» f7=(t*(sin(2*t))+exp(-2*t);
» F7=laplace(f7)
F7 = ¿ ¿
C. Now, create a command that will perform the Laplace Transform of the equation below:
f 8 ( t )=et (3 t)
» syms t
» f8=(exp(t))*(cos(3*t))^2;
» F8=laplace(f8)
F8 = ¿ ¿
D. Now, create a command that will perform the Inverse Laplace Transform of the equation
below:
s+2
H 1 ( s )=
s + 4 s2 +3 s
3
» syms s
» H1=(s+2)/((s^3)+(4*(s^2))+(3*s));
» h1=ilaplace(H1)
−t −3∗t
h1 = 2 − e − e
3 2 6
E. Now, create a command that will perform the Inverse Laplace Transform of the equation
below:
s 2+ 2 s+3
H 2 ( s )=
( s+ 1 )3
» syms s
» H2=(( s ¿ ¿ ¿2 +2∗s )+3 ¿ /((s+ 1)3 );
» h2=ilaplace(H2)
h2 = (t 2+1 ¿∗e−t
F. Now, create a command that will perform the Inverse Laplace Transform of the equation
below:
5 s+3
H 3 ( s )=
s + 6 s 2+ 11 s+ 6
3
» syms s
» H3=(5*s + 3)/(s^3+6*s^2 + 11*s +6);
» h3=ilaplace (h3)