Aliasing example

バージョン 1.0.1 (2.36 KB) 作成者: Jitong Ding
This code demonstrates the phenomenon of aliasing by varying the frequency of a sinusoidal signal.
ダウンロード: 315
更新 2022/3/19

ライセンスの表示

This code demonstrates the effect of aliasing by varying the frequency of a sinusoidal signal.
Aliasing concerns the miscalculation of the coefficients of low frequencies and the neglection of high frequency information in a signal, which happens when the sampling rate is too small (no enough sampling points) to capture the high frequency information. In order to avoid aliasing, the sampling rate should be bigger than the Nyquist frequency.
This code has three parts, sampling points will be indicated by blue circles:
(1) Illustration of signal processing before aliasing happens. The example signal (red curve) is in low frequency band so that the number of sampling points is sufficient.
(2) Illustration of the situation when aliasing happens. The number of sampling points is not enough to capture the high frequency signal (red curve). Instead, a low frequency signal (thick yellow line) will be erroneously attained.
(3) Illustration of the case when the sampling rate equals the Nyquist frequency. Correct signal will be calculated only when the sampling points sit at the peaks of the signal.

引用

Jitong Ding (2024). Aliasing example (https://www.mathworks.com/matlabcentral/fileexchange/108249-aliasing-example), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2022a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1

Added a profile image.

1.0.0