필터 지우기
필터 지우기

Display spectrum of sine wave in Simulink

조회 수: 1 (최근 30일)
Gregor
Gregor 2024년 2월 19일
답변: Pramil 2024년 2월 26일
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
Aquatris
Aquatris 2024년 2월 19일
편집: Aquatris 2024년 2월 19일
I think you still have leakage due to how the block works. Change the 'window length' (by default it is RBW) and it prevents the leakage. I have never used this block before so I cannot tell in detail what might be the correct way.

댓글을 달려면 로그인하십시오.

답변 (1개)

Pramil
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 Resolutionsection 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.

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by