LAB2Apre Lab

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

FACULTY OF ELECTRICAL ENGINEERING

UNIVERSITI TEKNOLOGI MARA

LINEAR SYSTEM
(ETE 455)

MODUL 1

TRIGONOMETRIC FOURIER SERIES COEFFICIENT

1.1 LIST OF APPARATUS

Equipment
1. Personal Computer
2. Software: MATLAB (Simulink)

1.2 OBJECTIVES
1. To obtain the coefficient of the Trigonometric Fourier Series.
2. To reproduce the periodic signal according to the coefficients obtained
1.3 THEORY
1.3.1 MATLAB Implementation

The 10th harmonic of Fourier Series representation of f(t)


Code(s) :
syms n t
T0 = 2;
W0 = 2*pi/T0;
n= 1:10

a0= (1/T0)*int(1, t, 0,1)


an=(2/T0)*int(1*cos(n*W0*t), t, 0,1)
bn = (2/T0)*int(1*sin(n*W0*t), t, 0,1)

a0 = double(a0);
an = double(an);
bn = double(bn);
tnum = [0:0.1:6];
fnum = a0;
for n=1:10
harmonic = (an(n)*cos(n*W0*tnum)) + (bn(n)*sin(n*W0*tnum));
fnum = fnum + harmonic;
plot(tnum,fnum)
end

n=
Columns 1 through 9

1 2 3 4 5 6 7 8 9

Column 10

10

a0 = 1/2

an = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

bn = [ 2/pi, 0, 2/(3*pi), 0, 2/(5*pi), 0, 2/(7*pi), 0, 2/(9*pi), 0]


1.4 PRE-LAB

1. Determine the symmetry of waveform in Figure 7.


2. Compute the Fourier series coefficient of waveform in Figure 7.

n(t)

t
-2.0 -1.5 -1.0 -0.5 0.5 1.0 1.5 2.0
-1

-2

Figure 7: Periodic signal 𝑛𝑛(𝑡𝑡 )


1.5 PROCEDURES

1. Produce a MATLAB coding to calculation the Fourier series coefficient of signal n(t) in Figure
7. A MATLAB coding to calculation of the Fourier Series Coefficient of signal n(t) in Figure 7
is produced.

2. The result obtained by MATLAB with the Pre-Lab answer is compared.

3. The Fourier Series representation is plotted for:


(i) 1st harmonic

(i) 5th harmonic

(ii) 10th harmonic

(iii) 20th harmonic

(iv) 35th harmonic and

(v) 50th harmonic

You might also like