852 CHAPTER 9 FOURIER ANALYSIS OF DISCRETE-TIME SIGNALS
← Back to LINEAR SYSTEMS AND SIGNALS Overview
852 CHAPTER 9 FOURIER ANALYSIS OF DISCRETE-TIME SIGNALS
we select the frequency range 0 ≤ < 2π (or 0 ≤ r < 20), we obtain the Fourier series as
This series is equivalent to that in Eq. (9.8) because the two exponentials ej1.9π*n* and e−j0.1π*n* are equivalent. This follows from the fact that ej1.9π*n* = ej1.9π*n* ×e−j2π*n* = e−j0.1π*n*.
We could have selected the spectrum over any other range of width = 2π in Figs. 9.1b and 9.1c as a valid discrete-time Fourier series. The reader may verify this by proving that such a spectrum starting anywhere (and of width = 2π) is equivalent to the same two components on the right-hand side of Eq. (9.8).
DR ILL 9.1 DTFS Spectra on Alternate Intervals
From the spectra in Fig. 9.1, write the Fourier series corresponding to the interval −10 ≥ r > −30 (or −π ≥ > −3π). Show that this Fourier is equivalent to that in Eq. (9.8).
DR ILL 9.2 Discrete-Time Fourier Series of a Sum of Sinusoids
Find the period and the DTFS for
x[n] = 4 cos 0.2πn+6 sin 0.5πn
over the interval 0 ≤ r ≤ 19. Use Eq. (9.4) to compute Dr.
ANSWERS
N0 = 20 and x[n] = 2ej0.2π*n* +(3e−jπ/2)ej0.5π*n* +(3ejπ/2)ej1.5π*n* +2ej1.8π*n*
DR ILL 9.3 Fundamental Period of Discrete-Time Sinusoids
Find the fundamental periods N0, if any, for: (a) sin(301πn/4) and (b) cos 1.3n.
ANSWERS
(a) N0 = 8, (b) N0 does not exist because the sinusoid is not periodic.
Compute and plot the discrete-time Fourier series for the periodic sampled gate function shown in Fig. 9.2a.
Figure 9.2 (a) Periodic sampled gate pulse and (b) its Fourier spectrum.
In this case, N0 = 32 and 0 = 2π/32 = π/16. Therefore,
where
For our convenience, we shall choose the interval −16 ≤ n ≤ 15 for this summation, although any other interval of the same width (32 points) would give the same result.†
† In this example we have used the same equations as those for the DFT in Ex. 8.9, within a scaling constant. In the present example, the values of x[n] at n = 4 and −4 are taken as 1 (full value), whereas in Ex. 8.9 these values are 0.5 (half the value). This is the reason for the slight difference in spectra in Figs. 9.2b and 8.19d. Unlike continuous-time signals, discontinuity is a meaningless concept in discrete-time signals.
854 CHAPTER 9 FOURIER ANALYSIS OF DISCRETE-TIME SIGNALS
Now, x[n] = 1 for −4 ≤ n ≤ 4 and is zero for all other values of n. Therefore,
This is a geometric progression with a common ratio e−j(π/16)r . Therefore (see Sec. B.8-3),†
\n
\n
\n
(9.10)
This spectrum (with its periodic extension) is depicted in Fig. 9.2b.
DISCRETE-TIME FOURIER SERIES USING MATLAB
Let us confirm our results by using MATLAB to directly compute the DTFS according to Eq. (9.4).
>> N_0 = 32; n = (0:N_0-1); Omega_0 = 2*pi/N_0;>> x_n = [ones(1,5) zeros(1,23) ones(1,4)];>> for r = 0:N_0-1,>> X_r(r+1) = sum(x_n.*exp(-j*r*Omega_0*n))/N_0;>> end>> r = n; stem(r,real(X_r),'k.');>> xlabel('r'); ylabel('X_r'); axis([0 31 -.1 0.3]);The MATLAB result, shown in Fig. 9.3, matches Fig. 9.2b. Alternatively, scaling the FFT by N0 produces the exact same result (Fig. 9.3).
X_r = fft(x_n)/N_0; stem(r,real(X_r),‘k.’); >> xlabel(‘r’); ylabel(‘X_r’); axis([0 31 -.1 0.3]);
Fortunately, the value of D0, as computed from Eq. (9.10), also happens to be 9/32. Hence, Eq. (9.10) is valid for all r.
† Strictly speaking, the geometric progression sum formula applies only if the common ratio
e−j(π/16)r = 1. When r = 0, this ratio is unity. Hence, Eq. (9.10) is valid for values of r = 0. For the case r = 0, the sum in Eq. (9.9) is given by