Ideal Spectral Interpolation
Stretch Operator
Signal Operators
  Index
  Search
Zero Padding
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
as indexing
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.
Definition:
ZEROPAD![$\displaystyle _{M,m}(x) \isdef \left\{\begin{array}{ll} x(m), & \vert m\vert < N/2 \\ [5pt] 0, & \mbox{otherwise} \\ \end{array} \right. \protect$](img985.png) |
(7.3) |
where
, with
for
odd,
and
for
even.
For example,
Z
EROP
AD
In this example, the first sample corresponds to time 0, and five
zeros have been inserted between the samples corresponding to times
and
.
Figure 7.5 illustrates zero padding from length
out to length
. Note that
and
could be replaced by
and
in the
figure caption.
Figure:
Illustration of zero padding:
a) Original signal (or spectrum)
plotted over the
domain
where
(i.e., as the samples would
normally be held in a computer array).
b)
ZEROPAD
.
c) The same signal
plotted over the domain
which
is more natural for interpreting negative times (frequencies).
d)
ZEROPAD
plotted over the zero-centered domain.
![\includegraphics[width=\textwidth]{eps/zpad.eps}](img993.png) |
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.
For example,
Z
EROP
AD![$\displaystyle _{10}([1,2,3,4,5]) = [1,2,3,4,5,0,0,0,0,0]$](img996.png)
(causal case)
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.3).
Ideal Spectral Interpolation
Stretch Operator
Signal Operators
  Index
  Search
``Mathematics of the Discrete Fourier Transform (DFT), with
Music and Audio Applications'',
by Julius O. Smith III,
W3K Publishing, 2003, ISBN 0-9745607-0-7.
(Browser settings for best viewing results)
(How to cite this work)
(Order a printed hardcopy)
Copyright © 2004-09-24 by Julius O. Smith III
W3K Publishing,