380
Practical MATLAB
® Applications for Engineers
Plots of square wave approximations using harmonics
0.8
0.6
0.2
0
−0.2
−0.4
−0.6
−0.8
0.4
Amplitude
0
0.5
1
1.5
2
2.5
3
3.5
4
time (in sec)
FIGURE 4.31
(See color insert following page 374.) Plots of part d of Example 4.1.
error1(t) = square wave-harmonics:1
error5(t) = square wave-harmonics:1,3,5
error3(t) = square wave-harmonics:1,3
error7(t) = square wave-harmonics:1,3,5,7
0.6
0.4
0.2
0
−0.2
−0.4
Amplitude
Amplitude
Amplitude
0.6
0.4
0.2
0
−0.2
−0.4
0
1
2
3
4
0
1
2
3
4
0.6
0.4
0.2
−0.2
−0.4
0
0
1
2
3
4
time (in sec)
0.6
0.4
0.2
−0.2
−0.4
0
0
1
2
3
4
time (in sec)
square wave
square wave
square wave
square wave
FIGURE 4.32
Plots of part e of Example 4.1.
CRC_47760_CH004.indd 380
CRC_47760_CH004.indd 380
7/28/2008 12:26:07 PM
7/28/2008 12:26:07 PM
Précédent

- 391/708

Suivant