Up until now, I’ve tried to contrive signals which will produce clean DFT output. Unfortunately, almost every “real-world” signal that you’ll process using the DFT will produce somewhat messy results. You probably noticed in the last section that signals which were composed of only one sinusoid were capable of producing spectra with many strange peaks and valleys when we started zero-padding them.
As it turns out, when any frequency component of the input signal does not perfectly match up with an available bin frequency, the energy related to that frequency component will “spill” out into all of the other bins. This is a phenomenon known as spectral leakage.
Figure 1 Allows you to see the effect of spectral leakage by altering the frequency of the input signal. The slider at the top of the figure allows you to change the input frequency smoothly from 1Hz to 3Hz. Notice that when the frequency of the input signal perfectly matches one of the available bin frequencies, there is no leakage. As soon as the frequency varies even slightly from a bin frequency, all of the other bins will assume a non-zero magnitude.
Figure 1. DFT Response to Different Input Frequencies |
||
|