Source: http://www.pik-potsdam.de/~petri/planwaveresonance/matlab-2010b-fft-help.pdf