PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

Fourier and Laplace 379


0.8

0.6

0.4

0.2

0

−0.2

−0.4

−0.6

−0.8
0 0.5 1 1.5^2 2.5 3 3.5 4
time (sec)

fundamental frequency

harmonic frequencies

Amplitude

Harmonic components of the square wave

FIGURE 4.29
(See color insert following page 374.) Plots of part b of Example 4.1.

fundamental frequency (square)
1

0.5

0

− 1

−0.5

01 2 3 4

fund. + 3rd. + 5th. harmonic
1

0.5

−0.5

− 1

0

Amplitude

Amplitude

0 1 2 3 4
time (in sec)

fund. + 3rd. harmonic
1

0.5

−0.5

− 1
0

0
Amplitude

Amplitude

1

1

(^234)
time (in sec) time (in sec)
fund. + 3rd. + 5th. + 7th. harmonic
0.5
−0.5
− 1
0
0 1 2 3 4
time (in sec)
FIGURE 4.30
Plots of part c of Example 4.1.

Free download pdf