Disclaimer: I'm not a signal processing expert.
I'm writing a function that takes a 1D array and performs Fast Fourier Transform on it. Here's how it works:
x
.x
to match the length of the original non-padded array.x
.I'm having trouble with step 3. If I omit step 3 and perform inverse FFT on the result of the function call, I get the initial padded array which means the function successfully performs steps 1 and 2.
I tried implementing step 3 by downsampling using linear interpolation, but when I perform inverse fourier transform on the final result using MatLab, the results I got were not equivalent to the original array. The programming language I need to use is not MatLab, I'm only using MatLab to verify correctness of the results.
What techniques can I use to perform step 3 while still being able to get back the original non-padded array after inverse FFT?
Use circular Sinc kernel interpolation to compute the down sampled points. The Sinc width will that of a low-pass filter with a cut-off appropriate to anti-alias for the new lower down-sampled sample rate.