fftshift-func
Shift FFT results or frequency.
Note that the output for this function are complex values, so when doing calculation on data columns, you need to set column data type to complex prior to set column formula. For details, see the example section below.
vector<complex> fftshift(vector<complex> cx)
cx
Return a shifted vector.
// Import the signal data string fname$ = system.path.program$ + "Samples\Signal Processing\fftfilter1.DAT"; impASC fname:=fname$; // Add a new column to store the shifted FFT complex result wks.addcol(); // Set data type to complex 16 in advance wks.col3.numerictype = 11; // Use fftshift and fftc to calculate col(C) = fftshift(fftc(col(B)));
ifftshift