Lab Report No. 12: Signals & Systems EEE-223
Lab Report No. 12: Signals & Systems EEE-223
EEE-223
Lab Report No. 12
Class BEE(4C)
Page | 1
Lab 12- Open ended lab
Code Result
clear all
close all
syms t s
%Given Expression
f=-1.25+3.5*t*exp(-2*t)+1.25*exp(-2*t)
clear all
close all
syms t s
%Given Expression
f=5/(4*(s + 2)) + 7/(2*(s + 2)^2) -
5/(4*s);
Task 02: Compute the unilateral Laplace transform of the function f (t) 1.
Code Result
clear all
close all
syms t s
f=1;
Page | 2
Task 03: Express in the partial fraction form the signal
s3 3s 2
X (s)
s2 4s 5
Code Result
clear all
close all
n = [1 0 -3 2];
d = [1 4 5];
[R,P,K] = residue(n,d);
n = [1 5 4];
X(s)
d = [1 0 0 0 1];
[R,P,K] = residue(n,d) 6
syms s 5
%Finding the Fourier Transform
X=R(1)/(s-P(1))+R(2)/(s- P(2)) 4
+R(3)/(s-P(3))+R(4)/(s-P(4));
simplify(X) 3
fplot(X, [-4 4])
title('X(s)')
2
-4 -3 -2 -1 0 1 2 3 4
Page | 3
clear all
close all Inverse X(s)
syms t s
6
ilaplace(f,t) -4 -3 -2 -1 0 1 2 3 4
Task 01: Examine the network shown in figure 12.1 below. Assume the network is in steady state
prior tot=0.
I. Plot the output current i ( t ) , for t >0
II. Determine whether the system is stable or not?
Figure 12.1
Page | 4
Code Result
ylim([-3 3])
title(' i(t) for t>0');
e=int(abs(IV).^2,t,0,inf)
e=
System is Inf
UNSTABLE
Task 02: For the circuit shown in figure 12.2, the input voltage is V i ( t ) =10cos ( 2t ) u (t)
I. Plot the steady state output voltage v oss (t ) fort >0 assuming zero initial conditions.
II. Determine whether the system is stable or not?
Figure 12.2
Page | 5
Code Plots
close all
clc
syms t s
%Expressing the function 5
V=10.*cos(2.*t).*heaviside(t);
V1=laplace(V,s);
Vs=V1.*((s.^2)./(s+2).^2);
Vout=ilaplace(Vs,t);
fplot(Vout,[0 15]) 0
% Checking Stability
e = sum(int(abs(Vout).^2,t,-
inf,inf)) -5
0 5 10 15
System is Unstable
e = Inf
Critical Analysis:
In this lab, we have determined the Laplace transform and inverse Laplace transform
in MATLAB using laplace () command and ilaplace () for inverse Laplace. There
are two available forms of Laplace transform. The first is two-sided (or bilateral)
Laplace transform and the second is unilateral. This method of using laplace ()
command is easy as compared to the theoretical way in which we find Laplace
transform using formulas which seems to be very time taking. We have also explored
the residue command which is used to find the Laplace transform of partial fractions.
The MATLAB residue function converts its argument function, given in rational form,
to partial fraction form. The syntax is [R, P, K] = residue (B, A), where B is the vector
containing the coefficients of the numerator polynomial and A is the vector of the
coefficients of the denominator polynomial. The commands used in this lab are very
helpful as they take less time to execute and can save a lot of time.
Page | 6