In tree dimensions how I can obtain the part corresponding to the negative frequencies, that is, the output can be centered with the fftshift fucntion?
These functions can be changed to allows for zero padding?
It is an important concern in FFT...
I'm not sure if it can be done by simply changing in your codes the term "fft(x)" by "fft(x,n)", where n is the size of the resulting padded output...