Should I use the absolute value of fast Fourier transform or the conjugate in signal analysis?
29 ビュー (過去 30 日間)
古いコメントを表示
I found this example in MATLAB https://www.mathworks.com/help/matlab/math/fft-for-spectral-analysis.html and I saw that they used the value of conjugate.
Pyy = Y.*conj(Y)/251;
I tried to calculate the magnitude using abs function rather than this line. I get nearly the same output.
Therefore, I am puzzled; should I use the way in this example or the magnitude way?
0 件のコメント
採用された回答
Star Strider
2020 年 11 月 18 日
Note that the plot is ‘Power Spectral Density’. Power is the square of magnitude.
The abs value is the square root of the complex value times its conjugate.
2 件のコメント
Star Strider
2020 年 11 月 23 日
As always, my pleasure!
The second argument is not necessary. The fft function will use the row length of the argument to determine the row length of the output. The second argument is only necessary if you want to zero-pad the inplut in order to increase the frequency resolution of the output.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!