calculate frequency band using Parseval
古いコメントを表示
I have the fft of my signal, but I don't know its frequency band and there are no lobe to extimate it.
Can I use Parseval's Theorem to calculate the band?
Could anyone post the code?
1 件のコメント
Sk Group
2021 年 2 月 8 日
採用された回答
その他の回答 (1 件)
Wayne King
2011 年 9 月 28 日
Hi, If you have the DFT (discrete Fourier transform) as implemented by fft(), then you have the frequencies. The frequencies are of the form (Fs*k)/N where Fs is the sampling frequency, N is the length of the signal and k runs from 0,1,...N/2 (for N even)
Parseval's theorem just demonstrates that energy is conserved.
x = randn(1e3,1);
xdft = fft(x);
norm(x,2)
(1/sqrt(length(x)))*norm(xdft,2)
2 件のコメント
Wayne King
2011 年 9 月 28 日
I should note that the DFT is periodic with period N so the other half of the frequencies can be thought of as the negative version of the above, or you can just let k run from 0,..... N-1
biomed
2011 年 9 月 28 日
カテゴリ
ヘルプ センター および File Exchange で Fast Fourier Transforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!