- Open a new Simulink model.
- From the Simulink Library Browser, open the "DSP System Toolbox" library.
- Drag the "FFT" block into the model.
- Connect the input signal to the "FFT" block.
- Set the FFT length parameter to desired number of samples. This should always be a power of 2.
- Connect the output of the "FFT" block to a "Spectrum Analyzer" block, which can be found in the "DSP System Toolbox" library. This block will display the frequency spectrum of the input signal in real-time.
- Configure the "Spectrum Analyzer" block as needed to set the frequency range, sample rate, and other parameters of the display.
real-time FFT in simulink
29 ビュー (過去 30 日間)
古いコメントを表示
Mohammad Ali Sadeghian
2023 年 4 月 23 日
回答済み: Mohammad Ali Sadeghian
2023 年 4 月 26 日
Hello,
anyone here knows how to model a real-time FFT in simulink?
Thanks,
0 件のコメント
採用された回答
Sufiyan
2023 年 4 月 25 日
Hi,
Here are the steps to create the model.
Hope this helps!
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Spectral Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!