FFT - Xilinx System Generator Block
11 次查看(过去 30 天)
显示 更早的评论
Hi there,
I'm trying to execute a simple fft example of a pure sinewave using the Xilinx System generator block in Simulink. I already know that the result is a complex number, what I've not found is the right way to plot my results.
I expect, given a sinewave (i.e. at 50 Hz), to have two peaks in my spectrum at -50 and 50 Hz.
My questions are:
- Why the fft result is multiplied by a factor given by the number of samples of the transform?
- How can I plot correctely the frequency spectrum of the fft result directly in simulink, or in matlab?
I attach the model and the result I obtained, with the complex plot of the fft result and the uncorrect spectrum. The samlipng frequency is 1 MHz.
I wait for some kind help.
Regards,
Giuseppe
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!