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

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

This lab report discusses performing the continuous time Fourier transform (CTFT) on various signals in MATLAB. Tasks included computing the Fourier transform of e-t, the inverse Fourier transform of exp(-1/4*w^2)*pi^(1/2), and verifying Fourier transform pairs using commands for the Fourier transform and inverse Fourier transform. The lab aimed to transform signals between the time and frequency domains and back. The conclusion states that the Fourier transform was used to obtain frequency domain representations of signals and the inverse Fourier transform was used to return to the time domain.

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)
192 views6 pages

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

This lab report discusses performing the continuous time Fourier transform (CTFT) on various signals in MATLAB. Tasks included computing the Fourier transform of e-t, the inverse Fourier transform of exp(-1/4*w^2)*pi^(1/2), and verifying Fourier transform pairs using commands for the Fourier transform and inverse Fourier transform. The lab aimed to transform signals between the time and frequency domains and back. The conclusion states that the Fourier transform was used to obtain frequency domain representations of signals and the inverse Fourier transform was used to return to the time domain.

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. 11

Name
Tayyab Ahmad Khan

Registration Number
FA18-BEE-154

Class
BEE-4C

Instructor’s Name
Ma’am Nida Zamir
Lab 11- Continuous Time Fourier Transform (CTFT)
In-Lab Tasks
2

Task-1 Compute the Fourier transform of x ( t )=e−t . MATLAB code is given in following, run
this code and compare your output using eq. (11.3). Write your code and results in following.

Code Result
clear all X
close all
1.5
syms t w
1

x=exp(-t.^2);
X=fourier(x,w); 0.5

subplot(2,1,1)
-3 -2 -1 0 1 2 3
fplot(X,[-3 3]);
title('X'); Xf

Xf=int(x.*exp(-(j*w*t)),t,- 1.5

inf,inf); %#ok<IJCL>
subplot(2,1,2) 1

fplot(Xf,[-3 3]);
0.5
title('Xf');
-3 -2 -1 0 1 2 3

Task-2
Compute the inverse Fourier transform of X = exp(-1/4*w^2)*pi^(1/2) using the command for
inverse Fourier transform and also verify your result using eq. (11.7). Give your results in
following.
Code Result
clear all
close all X
1

syms t w
X = (exp(-1/4.*w^2))*pi^(1/2);
0.5
x1 = ifourier(X,t);
subplot(2,1,1)
fplot(x1,[-3 3]);
0
title('X'); -3 -2 -1 0 1 2 3

%formula for inverse FT X inverse


xi=(1/(2*pi)).*int(X.*exp(1i*w*t),w,- 1

inf,inf);
subplot(2,1,2)
fplot(xi, [-3 3]); 0.5

title('X inverse');
0
-3 -2 -1 0 1 2 3

Task-3
Compute the inverse Fourier transform of the function X () 1/ (1  j) using
command of Fourier and then take inverse of the resultant x(t) to produce again X ().

Code Result
clear all
close all
syms t w
X1 = 1/(1+(j*w))
%inverse Fourier
f =ifourier(X1,t)

X2 =fourier(f,w)
Task-4
Let x(t) = 1, compute its Fourier transform to produce X(w) and then take inverse
Fourier transform of X(w) to get back x(t), using commands of Fourier transform.

Code Result

clear all
close all
syms t w

x=1;
f=fourier(x,w)

f=ifourier(f,t)

Task-5
Let x(t) = u(t), compute its Fourier transform, take inverse Fourier transform of the
resultant signal to get back x(t).

Code Result

clear all
close all
syms t w

f=heaviside(t)
X1=fourier(f,w)

X2= ifourier(X1,t)
Task-6
Let x(t) = δ (t ), compute its Fourier transform, take inverse Fourier transform of the
resultant signal and state whether it is possible to get back x(t) or not?

Code Result

clear all
close all
syms t w
f=dirac(t)

X1=fourier(f,w)

X2=ifourier(X1,t)

So, yes it is possible to get x(t) back

Task-7
Prove that x ( t )=δ (t−2) and X( Ω ) =e− j 2 Ω , are Fourier transform pairs of each other.

Code Result

clear all
close all
syms t w
f=dirac(t-2)

X1=fourier(f,w)

X2=ifourier(X1,t)

Hence they are pairs.


Task-8
Prove that x ( t )=u (t−2) and X( Ω ) =exp(−2∗j∗w)∗( pi∗δ (w)− j /w) , are Fourier
transform pairs of each other.
Code Result

clear all
close all
syms t w
f=heaviside(t-2)

X1=fourier(f,w)

X2=ifourier(X1,t)

Conclusion:
In this lab we performed Fourier transform in almost all the tasks. Fourier transform is
used to transform a time domain signal into frequency domain. As some times
frequency domain reveals more information as compared to time domain. In this lab, the
Fourier transform for continuous-time signals was discussed which is known as
continuous-time Fourier transform (CTFT). By applying, Fourier transform to a
continuous time signal x (t), we obtain a representation of the signal at the cyclic
frequency domain Ω or equivalently at the frequency domain f. In order to return from
the frequency domain back to the time domain the inverse Fourier transform is
implemented. The inverse Fourier transform is denoted by the symbol; i.e. F -1{.}. The
MATLAB command used for this purpose is ifourier( ).

You might also like