392 Practical MATLAB® Applications for Engineers
Harmonic frequencies of f(t)first
second
third
fourth
fifth0.80.60.2−0.2−0.4−0.6−0.800.4Amplitude− 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 + DCPartial sum of first 5 harmonics + DC211.50.50211.50.50211.50.50Amplitude Amplitude− 2 − 1 0 1 2Partial sum of first 4 harmonics + DC
21.50.510Amplitude− 2 − 101 2− 2 − 1 012− 2 − 101 2
time (in sec) time (in sec)AmplitudeFIGURE 4.42
Plots of part c of Example 4.4.