Summary: Illustration of the sampling theorem
In this module we illustrate the processes involved in sampling and reconstruction. To see how all these processes work together as a whole, take a look at the system view. In Sampling and reconstruction with Matlab we provide a Matlab script for download. The matlab script shows the process of sampling and reconstruction live.
To sample an analog signal with 3000 Hz as the highest frequency component requires sampling at 6000 Hz or above.
The sampling theorem can also be applied in two dimensions, i.e. for image analysis. A 2D sampling theorem has a simple physical interpretation in image analysis: Choose the sampling interval such that it is less than or equal to half of the smallest interesting detail in the image.
We start off with an analog signal. This can for example be the sound coming from your stereo at home or your friend talking.
The signal is then sampled uniformly. Uniform sampling implies that we sample every
![]() |
![]() |
Now let's take a look at the sampled signal in the frequency domain. While proving the sampling theorem we found the the spectrum of the sampled signal consists of a sum of shifted versions of the analog spectrum. Mathematically this is described by the following equation:
In Figure 3 we show the result of sampling
![]() |
So now we are, according to the sample theorem, able to reconstruct the original signal exactly. How we can do this will be explored further down under reconstruction. But first we will take a look at what happens when we sample too slowly.
If we sample
The consequence of aliasing is that we cannot recover the original signal,
so aliasing has to be avoided.
Sampling too slowly will produce a sequence
![]() |
To avoid aliasing we have to sample fast enough. But if we can't sample fast enough (possibly due to costs) we can include an Anti-Aliasing filter. This will not able us to get an exact reconstruction but can still be a good solution.
The stagecoach effect
In older western movies you can observe aliasing on a stagecoach when it starts to roll. At first the spokes appear to turn forward, but as the stagecoach increase its speed the spokes appear to turn backward. This comes from the fact that the sampling rate, here the number of frames per second, is too low. We can view each frame as a sample of an image that is changing continuously in time. (Applet illustrating the stagecoach effect)
Given the signal in Figure 3 we want to recover the original signal, but the question is how?
When there is no overlapping in the spectrum, the spectral
component given by
![]() |
Then we have reconstructed the original spectrum, and as we know if two signals are identical in the frequency domain, they are also identical in the time domain. End of reconstruction.
The Shannon sampling theorem requires that the input signal prior to sampling is band-limited to at most half the sampling frequency. Under this condition the samples give an exact signal representation. It is truly remarkable that such a broad and useful class signals can be represented that easily!
We also looked into the problem of reconstructing the signals form its samples. Again the simplicity of the principle is striking: linear filtering by an ideal low-pass filter will do the job. However, the ideal filter is impossible to create, but that is another story...