What Simulink tool should I use to break a continuous signal into its frequency components?
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Surojit Sen
am 16 Mär. 2017
Kommentiert: Surojit Sen
am 27 Apr. 2017
I have a continuous signal which is composed of multiple frequency components, not necessarily harmonics. How do I separate this signal into its frequency components? FFT tool is there but due to some reason, it is not giving the components, rather producing the same signal with a more "discretized" graph. FFT is mathematically for discrete signals, but aren't continuous signals also really discrete in MATLAB? If no, then what can I use for a continuous signal? Otherwise, how can I discretize my continuous signal to give a discrete proxy, capable to be used with the FFT block. Thanks, attaching some pictures and the model.
0 Kommentare
Akzeptierte Antwort
Ed Marquez
am 23 Mär. 2017
Hi,
I recommend checking a really simple demo for using the FFT block in Simulink. You can open the demo by typing 'ex_fft_tut' at the MATLAB command window (I am assuming you are using R2016b on a Windows PC, and have all the necessary licenses).
In the example you will see that the FFT block takes frames of data (128 values at once), but in your model you are feeding a single scalar value to the block. Additionally, your signal is continuous so you will need to discretize it to be able to take the FFT with the block. One way to discretize your signal can be to use a Zero-Order hold and specify an adequate sample time. You can also use a Buffer block to create the frame of data that your FFT needs.
Please check the image below and see how I modified the example 'ex_fft_tut'. You can do something similar with your model. The image shows the dialog parameters for the Sine Wave, Zero-Order Hold, and Buffer blocks - everything else has the example defaults.
I hope this helps!
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Transforms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!