stft plot doesn't match FFT results
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello
I have a signal sampled at 250e6 samples/s. The FFT result of the signal looks correct with fundamental at 1.1 MHz and some harmonics. But when I do short-term fourier transform on the signal using the command:
figure,stft(T_mean,250e6,'FFTLength',1024);
I am not sure if the result is correct or not. Can anyone please help?
I did detrending to remove the DC noise part.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/756234/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/756239/image.jpeg)
댓글 수: 0
채택된 답변
Star Strider
2021년 10월 2일
If the frequencies are the same in both plots, the only difference is that the STFT plot spans -125 Hz to +125 Hz. The peaks are clustered between 0 Hz and 5 Hz, explaining the bands on either side of the 0 Hz line.
Include:
ylim([-5 5])
and the plots should look similar (except that the STFT plot will continue to be symmetric about 0).
.
댓글 수: 2
Star Strider
2021년 10월 2일
My pleasure!
ICA or a filtering approach are the only options I’m aware of.
I have no idea what ‘didn’t seem to work’ means.
.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!