The Art of Signal Sampling and Aliasing:
"What we see is not what it is!" ***(Set "Full Screen" view and 1024 X 768 resolution)

Back to interactive experimentation. Review the paper with several sample outputs on this issue. Return to Prof. M. Kostic home page.

Watch how the same "real" (green) signal appears differently as measured/sampled (bold red) signal, depending on changing sampling- frequency! The same color-coding (green-red-blue) is on the movie frames.
To STOP/FREEZE any frame, PRESS "STOP" on your browser, or "REFRESH" to continue.


The input and output values and plot are clearly presented in the front panel of the developed virtual instrument, see Front Panel output sample. The arbitrary input values are: signal and sampling frequencies or sampling-to-signal frequency RATIO, number of signal's cycles/periods as well as the magnitude ratio and the phase lag. The output values are: (1) sampling frequency if the sampling to signal frequency ratio is given, (2) the Nyquist frequency, see NOTE for definition, (3) the frequency ratio if the sampling frequency is given, (4) aliasing to signal frequency ratio, (5) the aliasing frequency, (6) total number of sampled points, and (7) number of sampled points per signal period or cycle; the latter should be equal to the sampling to signal frequency ratio.

NOTE: Nyquist frequency may be defined in different ways, namely:

  1. Nyquist frequency defined as maximum signal frequency that could be reliably measured to avoid aliasing, which is solely based on the sampling frequency, i.e. equal to one half of it (used in here). Only signals with smaller than this Nyquist frequency will be sampled reliably, while higher frequency signals will "fold back," i.e. appear as a smaller aliasing frequency signals.
  2. Nyquist frequency defined as minimum required sampling frequency for a given signal frequency to avoid aliasing. It is based on (maximum) signal frequency that could be reliably measured with that minimum sampling frequency. Thus, the sampling frequency has to be larger than this Nyquist frequency. Sometimes half of this value is defined as the Nyquist frequency (to equal the above definition 1) so then the sampling frequency has to be larger than twice this Nyquist frequency.

The above definitions represent the same phenomenon, i.e. the same critical frequency for aliasing, critical sampling twice the signal frequency, but are based on two different references: (1) the sampling frequency (so the Nyquist frequency is maximum signal frequency to be measured without aliasing, i.e. a half of the sampling frequency), and (2) based on a signal frequency (so the Nyquist frequency is the minimum sampling frequency required to avoid aliasing), thus the latter being twice the former.