I performed an FFT with some zero padding and would like to transform it back to time domain. When I plot the signal it looks wrong. Is it because of the padding used in the FFT? How can I make it right? here is my code for doing the IFFT:
NFFT=4301; AvIFFT = ifft(FFTavg.dat,NFFT); plot(real(AvIFFT))
Any help would be greatly appreciated! Thank you!
ps: I have asked this question on matworks but no success as yet.
As suggested in the comment and answer below, I tried fftshift:
NFFT = 4301; FFTshifted = fftshift(FFTavg.dat); AvIFFT = ifftshift(FFTshifted,NFFT); plot(real(AvIFFT))
Here is the plot: