Professional Documents
Culture Documents
LAB2Apre Lab
LAB2Apre Lab
LAB2Apre Lab
LINEAR SYSTEM
(ETE 455)
MODUL 1
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
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]
n(t)
t
-2.0 -1.5 -1.0 -0.5 0.5 1.0 1.5 2.0
-1
-2
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.