HyperMath

Fft

Fft

Previous topic Next topic No expanding text in this topic  

Fft

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Fast Fourier Transform (FFT) function.

Syntax

y = Fft(vec, length)

Arguments

Name

Description

 

vec

A vector of  time-domain data.  It can be complex valued.

 

length (optional)

The length of the output vector if specified as a positive integer.  If omitted or zero, the length will be the block size or window length.  If the length is specified as ‘pad’, the length will be rounded up (zero padding the inputs) if necessary to obtain a power of 2.

Output

Name

Description

 

y

A vector of the FFT.  It is of complex type.  Its length is equal to that of the input vector unless argument length is specified.

Example

Given a vector data of a time-domain signal, a vector of the FFT of the signal is created:

 

Syntax

 

y = Fft(data)

 

Result

 

y is a complex vector of the FFT of data.  Its length is equal to the least power of two, greater than or equal to the number of elements in the data.

Comments

FFT is complex-valued and used to map time-domain data into the frequency domain.  The output can be used to extract the magnitude and phase.

See Also:

Abs

Dft

FftImag

FftMag

FftPhase

FftReal

Ifft

Phase