
Display spectrum of sine wave in Simulink
8 ビュー (過去 30 日間)
古いコメントを表示
As a simple experiment, I am trying to generate a sine-wave and display its spectrum with the spectrum analyzer. I am expecting a narrow peak at the chosen frequency of the sine, which is 1MHz. However, what I get is a "smeared" spectrum, although the frequency should fall on a single bin. What am I doing wrong?


1 件のコメント
回答 (1 件)
Pramil
2024 年 2 月 26 日
You are getting smeared peaks due to spectral leakage. I assume that you are using the “Filter bank” method for frequency resolution if not I recommend using that and increase the sharpness to “1” for getting narrow peaks.
You can refer to this page under “Frequency Resolution” section to knwo more about “Filter bank” method:
You can also add a “Lowpass Filter Block” to supress higher frequency components which reduces attenuation due to high-frequency noise.
I have attached a sample model for you to refer.

0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spectral Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!