I am trying to get the fft of my pulse.
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval corresponds 10 picoseconds.
I am trying to find my x axis with fftfreq function. However, I am not sure, If I use the function correctly or not
When I tried to get fft of my pulse, I simply run the code:
Thank you in advance
My total pulse duration is 1 microsecond and I have 100000 time slot in this pulse. So each interval corresponds 10 picoseconds.
I am trying to find my x axis with fftfreq function. However, I am not sure, If I use the function correctly or not
When I tried to get fft of my pulse, I simply run the code:
from scipy.fft import fft,fftfreq,ifft yf = fft(v_t) #freq = n/T xf = fftfreq(len(result.time[:-1]), 1e-11) plt.plot(xf[range(50000)], yf[range(50000)]) plt.show() plt.plot(result.time[:-1],ift) plt.show()where v_t is my pulse. However, I am not sure for my fftfreq parameters. First parameter corresponds the size of my pulse which is 100000 and the second parameters is my time interval between each discrete time. (The total time is 1e-6 and number of time slots is 100000 so 1e-6/400000=1e-11). Did I use the fftfreq correctly?
Thank you in advance