Beruflich Dokumente
Kultur Dokumente
Fourier Series
11.1 OBJECTIVE:
To become familiar with fourier transform.
To understand why fourier transform is used?
To become familiar with the analysis of time domain and frequency domain.
11.2 INTRODUCTION:
The Fourier transform (FT) decomposes (analyzes) a function of time (a signal) into its
constituent frequencies. This is similar to the way a musical chord can be expressed in terms
of the volumes and frequencies (or pitches) of its constituent notes. The term Fourier
transform refers to both the frequency domain representation and the mathematical operation
that associates the frequency domain representation to a function of time.
Code Output
syms t w; x=
x=cos(t); cos(t)
f=fourier(x,w);
f=
pi*(dirac(w - 1) + dirac(w + 1))
>>
In-Lab Task 02: Compute the inverse Fourier transform of signal X () sin /
Code Output
syms ohm w; x=
x=sin(ohm)/ohm sin(ohm)/ohm
f=fourier(x,w)
ff=ifourier(f,ohm) f=
pi*heaviside(1 - w) - pi*heaviside(- w - 1)
ff =
-((pi*(cos(ohm)*i - sin(ohm)))/ohm -
(pi*(cos(ohm)*i + sin(ohm)))/ohm)/(2*pi)
>>
In-Lab Task 03: Suppose that a signal x(t) is given by x(t) te3t . Compute the Fourier
transform X () of the signal x(t) and plot for 20 20 rad/s.
a. The magnitude of X ()
b. The angle of X ()
c. The real part of X ()
d. The imaginary part of X()
Code Output
syms t w; >> lab11
x=t*exp(-3*t^2); f=
f=fourier(x,w)
ff=eval(f); -(3^(1/2)*pi^(1/2)*w*exp(-w^2/12)*i)/18
subplot(2,2,1); >>
ezplot(abs(ff),[-
Time domain to frequency domain Time domain to frequency domain
20 20])
title('Time
domain to Magnitude Angle
frequency 0.2 1
domain')
legend('Magnitude 0
') 0.1
grid on; -1
subplot(2,2,2);
ezplot(angle(ff), 0
[-20 20]) -20 -10 0 10 20 -20 -10 0 10 20
title('Time
w w
domain to
frequency Time domain to frequency domain Time domain to frequency domain
domain') 1 0.2
legend('Angle') Real Imaginary
grid on; 0.5 0.1
subplot(2,2,3);
ezplot(real(ff), 0 0
[-20 20])
title('Time -0.1
-0.5
domain to
frequency -0.2
domain') -1
-20 -10 0 10 20 -20 -10 0 10 20
legend('Real')
grid on; w w
subplot(2,2,4);
Figure 1
ezplot(imag(ff),
[-20 20])
title('Time
domain to
frequency
domain')
legend('Imaginary
')
grid on;
Date: ______________
Experiment Number: ____
CLOs Covered: ________
PLOs Covered: ________
Total Marks
Unsatisfactory [1-5]
Average [5-7]
Meets Expectations [7-9]
Exceed Expectations [9-10]
______________________________
Lab Instructor Engr. Javeria Abid