3.5.4.2 fftc

Description

Calculates the complex FFT result for give vector cx. Shift is off, Spectrum Type is two sided.

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.

Syntax

vector<complex> fftc(vector cx)

Parameters

cx

A given vector, it could be either real or complex data.

Return

Return the complex FFT result.

Example

// Import the signal data
string fname$ = system.path.program$ + "Samples\Signal Processing\fftfilter1.DAT";
impASC fname:=fname$;

// Add a new column to store the FFT complex result
wks.addcol();

// Set data type to complex 16 in advance
wks.col3.numerictype = 11;

// Use the fftc function to calculate FFT complex result
col(C) = fftc(col(B))

See Also

fftamp, fftmag, invfft, fftfreq, windata