How to find the FFT of a variable frequency sinusoidal signal in Simulink

조회 수: 1 (최근 30일)
Haider
Haider 2024년 3월 8일
댓글: Mathieu NOE 2024년 3월 11일
I generated a sinusoidal signal with 3 frequencies (5, 10, 15 Hz) using the following method:
I tried to find the FFT of this signal with:
but the spectrum was nothing like what it's supposed to be, so what is the correct the way to find it (is the generating method correct or is there a better way)?
Thanks.
  댓글 수: 3
Haider
Haider 2024년 3월 8일
I tried using the fftshift, and I also replaced the clock with digital clock, but the results weren't better.
Mathieu NOE
Mathieu NOE 2024년 3월 11일
I haven't used this demo example, but it's purpose is to do a single fft computation for a fixed frequency signal
I suppose that you want to create multiple fft spectra for a variable frequency signal (as you would do to plot a spectrogram), so you have to change a bit the logic

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

답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by