![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1621393/image.png)
Display spectrum of sine wave in Simulink
조회 수: 1 (최근 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1621098/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1621103/image.png)
댓글 수: 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.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1627633/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1627633/image.png)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!