I have some questions.
The frequency should be xf = np.fft.fftfreq(N,0.5/N)
However, it makes the frequency and the amplitude don't match each other.
Can anyone help me? thanks!
Also, what is the x limit range for nfft function? I haven't found any description about it.