Lab 2 - Fourier Series
Lab 2 - Fourier Series
NAME OF GROUP
MEMBER(S) &
MATRIX NUMBER(S)
COURSE 3 BERL
DATE
TOTAL MARKS
1.0 OBJECTIVES
1. To show that any periodic function (or signal) can be represented as a series of
sinusoidal (or complex exponentials) function.
2. To show and to study how to approximate periodic functions using a finite number of
sinusoidal function and run the simulation using MATLAB.
2.0 EQUIPMENT
1. MATLAB® software.
+∞ +∞
jk ω 0 t
x(t )= ∑ a k e = ∑ ak e jk(2π /T )t
k=−∞ k=−∞
jω 0 t jω 0 t jω0 t jω0 t
x ( t )=a−2 e +a−1 e +a 0 + a1 e + a2 e
Page 2 of 4
4.0 PROCEDURE
TASK 1:
Table 1: Coefficients for Complex Exponential Fourier Series of half-rectified sine wave
For all signals below A = 1, T = 1.
{
Wave form Fourier Coefficients
Half-rectified sine wave:
A
k =0 ,±2 ,±4 ,…
π (1−k 2 )
ak= jA
∓ k =±1
4
0 others
Listing 1:
Page 3 of 4
TASK 2:
1. Change ak (in previous Listing 1) with the formula given in the Table 2, then
run the program. Pay attention to other instructions that must also be changed.
2. Discussed your result. (Answer question 7.0)
Waveform 1:
{
2A
k =even
a k = π (1−k 2 )
0 k=odd
Waveform 2:
{
4A
k=odd
ak = π2 k2
0 k=even
Page 4 of 4