How to plot the frequency spectrum in simulink
Mostrar comentarios más antiguos
Hello, I am learning matlab and I am trying to plot a frequency spectrum of a simple sine wave in simulink but the problem is i could not get the actual frequency spectrum that I expect... I am using power spectral density to view the frequency spectrum. Will it work fine or am I using a wrong instrument.

This is my simulink model to plot the and view the frequency spectrum of a simple sine wave and sine wave characterstics are as:

My Matlab version in R2012a. Here when I keep the 'W' as 35 rads/sec but I am getting the frequency spectrum as follows:

So here I expect the impulse or peak in the Power Spectral Density graph at 35 but it is showing at 25 Could any one solve this issue for me.
If I am doing wrong by using this instrument to view the Frequency spectrum, please guide me...
Thanks in advance...
1 comentario
Shreya
el 7 de Mzo. de 2025
Code for this
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Parametric Spectral Estimation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
