Shifts a 1D or 2D FFT so the 0 frequency is the midpoint.
FFTSHIFT(series)
|
series |
- |
Any series or multi-column table. |
A series or array.
W1: {1, 2, 3, 2, 1}
W2: fft(W1)
W3: fftshift(W2)
The zero frequency (i.e. DC) value of W2 is the first point. The zero frequency of W3 is the 3rd point and appears in the middle of the resulting graph.
W1: gcos(100,.01,10)
W2: fftp(w1, 8*1024)
W3: fftshift(w2)
The frequency peaks in W3 appear at +- 10 Hertz.
FFTSHIFT also works on 2D FFT array.