392 Practical MATLAB® Applications for Engineers
Harmonic frequencies of f(t)
first
second
third
fourth
fifth
0.8
0.6
0.2
−0.2
−0.4
−0.6
−0.8
0
0.4
Amplitude
− 2 −1.5 − 1 −0.5 0 0.5 1 1.5 2
time (in sec)
FIGURE 4.41
(See color insert following page 374.) Plots of part b of Example 4.4.
Partial sum of first 2 components (F0+F1) Partial sum of first 3 harmonics + DC
Partial sum of first 5 harmonics + DC
2
1
1.5
0.5
0
2
1
1.5
0.5
0
2
1
1.5
0.5
0
Amplitude Amplitude
− 2 − 1 0 1 2
Partial sum of first 4 harmonics + DC
2
1.5
0.5
1
0
Amplitude
− 2 − 101 2
− 2 − 1 012
− 2 − 101 2
time (in sec) time (in sec)
Amplitude
FIGURE 4.42
Plots of part c of Example 4.4.