Zero padding consists of extending a signal (or spectrum)
with zeros to extend its time (or frequency band) limits. It maps a
length signal to a length signal, but need not be an
integer multiple of . To unify the time-domain and
frequency-domain definitions of zero-padding, it is necessary to
regard the original time axis
positive-time samples from 0 to (for even), and negative
times in the interval
Furthermore, we require
when is even,
while odd requires no such restriction.
and for even.
In this example, the first sample corresponds to time 0, and five
zeros have been inserted between the samples corresponding to times
Figure 7.7 illustrates zero padding from length out to length
. Note that and could be replaced by and in the
Illustration of zero padding:
a) Original signal (or spectrum)
plotted over the
where (i.e., as the samples would
normally be held in a computer array).
c) The same signal plotted over the domain
is more natural for interpreting negative times (frequencies).
plotted over the zero-centered domain.
When a signal is causal, that is, for all
negative-time samples (
), then zero-padding can be
carried out by simply appending zeros to the original signal.
The causal definition is natural when represents a signal
starting at time 0 and extending for samples. On the other
hand, when we are zero-padding a spectrum, or we have a time-domain
signal including both positive- and negative-time samples, then the
zeros should be inserted ``outside the nonzero interval'' of the
signal or spectrum, as defined in Eq. (7.4).