0% found this document useful (0 votes)
282 views6 pages

Lab Report No. 12: Signals & Systems EEE-223

This lab report explores signal processing and Laplace transforms. Four tasks were completed: 1) computing unilateral Laplace transforms and inverse transforms, 2) finding the Laplace transform of f(t)=1, 3) expressing a signal in partial fraction form, and 4) verifying a partial fraction form by computing inverse transforms. Two additional open-ended tasks analyzed circuits using Laplace transforms to determine stability and plot output voltages. The report concludes MATLAB is useful for efficiently computing transforms compared to theoretical methods.

Uploaded by

Tayyab Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
282 views6 pages

Lab Report No. 12: Signals & Systems EEE-223

This lab report explores signal processing and Laplace transforms. Four tasks were completed: 1) computing unilateral Laplace transforms and inverse transforms, 2) finding the Laplace transform of f(t)=1, 3) expressing a signal in partial fraction form, and 4) verifying a partial fraction form by computing inverse transforms. Two additional open-ended tasks analyzed circuits using Laplace transforms to determine stability and plot output voltages. The report concludes MATLAB is useful for efficiently computing transforms compared to theoretical methods.

Uploaded by

Tayyab Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Signals & Systems

EEE-223
Lab Report No. 12

Name Tayyab Ahmad Khan

Registration Number FA18-BEE-154

Class BEE(4C)

Instructor’s Name Ma’am Nida Zamir

Page | 1
Lab 12- Open ended lab

Task 01: Compute the unilateral Laplace transform of the function


f (t)  1.25  3.5te2t 1.25e2t. Also evaluate the inverse Laplace transform of your
result.

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)

%Taking Laplace using command


laplace(f,s)

clear all
close all
syms t s
%Given Expression
f=5/(4*(s + 2)) + 7/(2*(s + 2)^2) -
5/(4*s);

%Taking Laplace inverse using command


ilaplace(f,t)

Task 02: Compute the unilateral Laplace transform of the function f (t)  1.

Code Result

clear all
close all

syms t s
f=1;

%Taking Laplace using command


laplace(f,s)

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);

%Finding the Fourier Transform


syms s
X=R(1)/(s-P(1))+R(2)/(s-P(2));
simplify(X)

Task 04: Express in the partial fraction form the signal


s2  5s  4
X (s) 
s4 1
Verify the result by computing the inverse Laplace transform from both forms and plot.
Code Result
clear all
close all

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

%Expressing the function


5
f=(( (45035996273705002*s +
15922629181314443*2^(1/2) +
4
15922629181314443*2^(1/2)*s^2 -
13510798882111488*s^2 + 3
13510798882111488)/(900719925474099
2*(s^4 + 1)))) 2

%Taking Laplace inverse using


command 0

ilaplace(f,t) -4 -3 -2 -1 0 1 2 3 4

fplot(f, [-4 4])


title('Inverse X(s)')

In-Lab Open ended Tasks

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

clear all i(t) for t>0


3
close all
clc
2

%Expressing the variables


1
syms t s
IV=12;
0

%Taking Laplace using command


-1
V=laplace(IV,s);
%I= V/R
-2
I=V/(2+s+10./s);
i(t)=ilaplace(I,t);
-3
fplot(i(t),[0 10]); 0 1 2 3 4 5 6 7 8 9 10

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

voss(t) for t>0


clear all 10

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

title('voss(t) for t>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

You might also like