Source: https://perso.ensta-paris.fr/~pcarpent/MO102/Cours/Projets/Pr-optiqu/projet%20MATLAB%20-%20fft,%20ifft%20et%20fftshift.pdf