Lab Report
Lab Report
LAB TASKS
ans =
1/(s - 1)^2
0, t4
2. Find the Laplace transform of the signal in Matlab: f (t ) 3 or f (t) 2t3u(t 4).
2t , t 4
clc
syms f t;
f=2*t^3*(heaviside(t-4));
laplace(f)
ans =
Let t a, then
L [ f (t a)u (t a)] f ( )e s ( a ) d e sa f ( )e s d e sa F ( s)
0 0
F ( s a) f (t )e ( s a )t dt [e at f (t )]e st dt L [e at f (t )]
0 0
clc
syms f t ;
f1=2*(t-3)^3*(heaviside(t-7));
laplace(f1)
ans =
Let at , then
s
s 1 1 s
L [ f (at )] f ( )e a
d f ( )e a d F ( )
0 a a 0 a a
clc
syms f t ;
f1 = cos (2*t);
laplace(f1)
ans =
s/(s^2 + 4)
5. Verify the linearity property for two appropriate signals in Matlab as:
ℒ [af (t) + bg(t)] [af (t ) bg (t )]e st dt a f (t )e st dt b g (t )e st dt aF ( s ) bG ( s )
0 0 0
clc
syms f t c d e;
f1 = cos (2*t);
f2 = sin (2*t);
f = (a*f1) + (b*f2);
laplace(f)
c = laplace (a*f1);
d = laplace (b*f2);
e = c+d
ans =
e=
3𝑠 3 + 4𝑠 2 + 𝑠 + 11
𝐹(𝑠) =
𝑠 2 + 41𝑠 + 12
clc
syms s;
f = ((3*s^3) + 4*s^2 + s +11)/(s^2+ 41*s + 12)
ilaplace (f)
f=
ans =
7. Calculate the partial fraction form for the following Laplace transform:
3𝑠 3 + 4𝑠 2 + 𝑠 + 11
𝐹(𝑠) =
𝑠 2 + 41𝑠 + 12
clc
b = [3 4 1 11];
a = [0 1 41 12];
[r p k] = residue (b,a)
r1 =17.25;
r2= 0.0003;
p1 =-40.7052;
p2= -0.2948;
k1=3;
k2=-119;
k=k1+k2;
f = r1/(s-p1) + r2/(s-p2) + k
r=
1.0e+03 *
4.8437
0.0003
p=
-40.7052
-0.2948
k=
3 -119
f=
1.0e+02 *
Columns 1 through 3
Column 4
-1.1600 + 0.0000i