
Padding the Data with Zeros
87
where m is any positive integer, then,
Y(mk)=X{k), fc = 0,l,...,iV
The DFT of the signal y(n) is given by
mN-l
Y(k)= Y, y(n)W£
k
N
, h = 0,1,-••,mN-l
n=0
Since y(n) is zero for n > N
—
1, we get
JV-l
Y(k)=Y,y(n)
w
™N, k = 0,l,...,mN-l
n=0
Substituting mk for
A;
and simplifying, we get
JV-l
Y(mk)= Y^y{n)Wtf =X(k), k =
0,1,...
,JV - 1
n=0
Example 4.31 Let m = 2 and x(n) =
{2,1,4,3}.
X(k) = {10,-2 +
j2,2,-2-j2}.
Then,
y(n) = {2,1,4,3,0,0,0,0}^
Y{k) = {10,*,-2 + j2,*,2,*,-2-j2,*}
By zero padding, the frequency increment of the spectrum is halved. There-
fore,
the spectral values with indices 0,1,2,3 in X(k) become spectral values
with indices 0,2,4,6 in Y{k). I
Figures 4.12(a) and (b) show, respectively, a signal with eight samples and
its spectrum. Figures 4.12(c) and (d) show, respectively, the same signal
padded up with eight zeros at the end and the corresponding spectrum. The
even-indexed spectral values are the same as those shown in Fig. 4.12(b).
The odd-indexed spectral values are not specified by this theorem. By zero
padding at the end, we get interpolation of the spectral values.
A similar effect is observed in zero padding a spectrum. Figures 4.12(e)
and (f) show, respectively, a spectrum with eight samples and the corre-
sponding time-domain signal. Figures 4.12(g) and (h) show, respectively,
the same spectrum padded up with eight zeros in the middle of the spec-
trum (at the end in the center-zero format) and the corresponding time-
domain signal. The even-indexed signal values are one-half of those shown