Professional Documents
Culture Documents
Fourier Transform
Signals and Systems
Department of Computer Engineering
College of Computer and Information Sciences
King Saud University
Student Name:
Student ID:
Instructions
Marking Scheme
1
Laboratory 8 - Continuous-time
Fourier Transform
Contents
8.1 Fourier transform . . . . . . . . . . . . . . . . . . . . . . . . . 3
8.2 Student Task 1 - Inverse Fourier transform . . . . . . . . . . . 4
8.3 Magnitude and phase of the Fourier transform . . . . . . . . . 5
8.4 Student Task 2 - Magnitude and phase . . . . . . . . . . . . . 7
8.5 Properties of the Fourier transform . . . . . . . . . . . . . . . 8
8.5.1 Linearity . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8.5.2 Student Task 3 - Linearity . . . . . . . . . . . . . . . . 8
8.5.3 Time shifting . . . . . . . . . . . . . . . . . . . . . . . 9
8.5.4 Student Task 4 - Time shifting . . . . . . . . . . . . . 9
8.5.5 Convolution and multiplication . . . . . . . . . . . . . 10
8.5.6 Student Task 5 - Convolution and multiplication . . . . 10
2
8.1 Fourier transform
Matlab uses the f ourier function to calculate the Fourier transform. Let
us calculate the Fourier transform of some common signals. The Fourier
transform of x(t) = δ(t) is calculated using the following code
clear all
close all
syms t
x=dirac(t);
f=fourier(x)
f=1
The Fourier transform of x(t) = e−2t u(t) gives f = 1/(2 + w ∗ 1i) using the
following code.
clear all
close all
syms t w
x=exp(-2*t)*heaviside(t)
f=fourier(x)
clear all
close all
syms t w w 0
x=sin(w 0 *t)
f=fourier(x)
3
8.2 Student Task 1 - Inverse Fourier transform
Task 1. Matlab uses the if ourier function to calculate the inverse Fourier
transform. Calculate and show the inverse Fourier transform of the common
signals shown in the previous section.
Note:
2. Use the simplif y function after calculating the inverse Fourier trans-
form of X(jw) = πj [δ(w − w0 ) − δ(w + w0 )].
4
8.3 Magnitude and phase of the Fourier transform
The magnitude and phase of the Fourier transform of x(t) = e−2t u(t) can be
calculated and plotted using the following code. subs(f, w)) substitutes w in
f , the result is stored in F .
clear all
close all
syms t w
x=exp(-2*t)*heaviside(t);
f=fourier(x);
w=-2*pi:pi/100:2*pi;
F=subs(f,w);
plot(w,abs(F),'-k','LineWidth',2);
xlabel('\omega')
title(' | F(j\omega) | ')
figure
plot(w,angle(F),'-k','LineWidth',2);
xlabel('\omega')
title('\angleF(j\omega)')
Figure 1 shows the magnitude and Figure 2 shows the phase of the Fourier
transform of x(t) = e−2t u(t).
5
Figure 2: Fourier Transform - phase
6
8.4 Student Task 2 - Magnitude and phase
Task 2. Calculate and plot the magnitude and phase of the Fourier trans-
form of x(t) = e|t| . Add appropriate labels and title. Write the code, print
and paste the figure here. Comment on your results.
7
8.5 Properties of the Fourier transform
We will now consider some of the important properties of the Fourier trans-
form. You are encouraged to try out the other properties of the Fourier
transform.
8.5.1 Linearity
The linearity property of the Fourier transform is given by Equation 1.
F
ax(t) + by(t) ←−
−→ aX(jw) + bY (jw) (1)
1. Calculate the left hand side of Equation 1 and take its Fourier trans-
form.
2. Calculate the Fourier transform of x(t) and y(t) separately and then
calculate the right hand side of Equation 1.
For the linearity property to hold, the result of step 1 should be equal to the
result of step 2.
8
8.5.3 Time shifting
The time shifting property of the Fourier transform is given by Equation 2.
F
−→ e−jwt0 X(jw)
x(t − t0 ) ←− (2)
If a signal is shifted in time, the magnitude of the Fourier transform remains
the same and the phase is altered.
9
8.5.5 Convolution and multiplication
The convolution property of the Fourier transform is given by Equation 3.
F
x(t) ∗ y(t) ←−
−→ X(jw)Y (jw) (3)
The convolution property is related to the multiplication property (sometimes
called the modulation property) of the Fourier transform, given by Equation
4, through the duality property.
F
x(t)y(t) ←−
−→ X(jw) ∗ Y (jw) (4)
10