fftw3 inverse transform not work

后端 未结 1 1214
予麋鹿
予麋鹿 2021-01-23 03:53

I\'m writing a simple code for complex to complex DFT in c with fftw3 library. i have written a file with input array double data so I can compare with matlab fft function. I tr

相关标签:
1条回答
  • 2021-01-23 04:30

    The difference between Matlab and FFTW comes with the scaling factor applied to the transform.

    Whereas Matlab's FFT is normalized, the algorithm used by FFTW as described in FFTW's documentation, is not normalized. In other words, the full-circle transform using FFTW (forward followed by backward) scales the result by a factor N.

    Correspondingly, comparing the in and rev array shows that rev is scaled by consistent factor of 8 (the size N of the transform used in your example).

    0 讨论(0)
提交回复
热议问题