PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

512 Practical MATLAB® Applications for Engineers


− 4 − 3 − 2 − (^1) 01 23 4
1.6
1.4
1.2
1
0.8
0.6
− 4 − 3 − 2 − 1 0
frequency W
1234
0.4
Amplitude
Amplitude
0.2
0
−0.2
−0.6
real [DTFT[f1(n)] versus W
imag [DTFT[f1(n)] versus W
FIGURE 5.24
Plot of the real and imaginary parts of DTFT[f 1 (n)] of Example 5.2.
− 4 − 2 0
0
2
40
20
0
0
Phase in rad.
1
− 1
Amplitude
Magnitude
4
6
246810
− 4 −^3 −^2 −^102134
− 4 − 3 − 2 − 1 02134
frequency W
angle[DTFT(2f1(n)+3f2(n))]
versus W
abs[DTFT(2f1(n)+3f2(n))] versus W
[2f1(n)+3f2(n)] versus time index n
n
W
FIGURE 5.25
Plot of 2f1(n) + 3f 2 (n), abs(DTFT[2f 1(n) + 3f 2 (n)]), and angleDTFT[2f1(n) + 3 f 2 (n)] of Example 5.2.

Free download pdf