The function of pyFFTW that has exactly same result with FFT of MATLAB

395 Views Asked by At

I'm looking for the function of pyFFTW that has exactly same result with FFT of MATLAB.

I already tried with some functions of pyFFTW like bellows.

x is 1D array, type: np.float32

Python 3.5.2:

a = fftw.n_byte_align_empty(x.size, 16, 'complex128')
b = fftw.n_byte_align_empty(x.size, 16, 'complex128')
fft_object = fftw.FFTW(a, b)

fft_object(x)

or

fft_object = fftw.builders.fft(x)

fft_object()

MATLAB:

fft(x)

But, there are a little differences(about 0.000001) by comparison with MATLAB's FFT.

Is there no way to get the exactly same result with MATLAB's FFT??

  • Version of python : 3.5.2
  • Version of pyFFTW : 0.10.4
  • Version of numpy : 1.12.0
  • Version of MATLAB : 8.3.0.532 (R2014a)

Thanks!

0

There are 0 best solutions below