Phase angle of a Fast Fourier Transform (FFT) function.


fftphase(vec_expr_1, [,vec_expr_2])


The real component of a vector.
An optional parameter that specifies the imaginary component of a vector.


Curve Math Vectors Result
x = freq(c1.x)

y = fftphase(c1.y)

Given c1, a curve is created which is the phase angle spectrum of the FFT of c1.


The fftphase function returns the phase angle of a Fast Fourier Transform (FFT). vec_expr_1 and vec_expr_2 are assumed to be evenly sampled. The resultant vector has a number of elements equal to the least power of two greater than or equal to the number of elements in vec_expr_1.

If only one vector expression is passed to fftphase, the function returns a regular FFT.

If two vectors are passed to fftphase, a complex FFT is calculated. vec_expr_1 and vec_expr_2 must have the same number of elements.

The FFT is complex-valued and used to map time-domain data into the frequency domain.