![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1638586/image.png)
How to find the FFT of a variable frequency sinusoidal signal in Simulink
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I generated a sinusoidal signal with 3 frequencies (5, 10, 15 Hz) using the following method:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1638251/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1638256/image.png)
I tried to find the FFT of this signal with:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1638261/image.png)
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 comentarios
Mathieu NOE
el 11 de Mzo. de 2024
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
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!