dftphase

Phase angle of a discrete Fourier Transform (dFT) function.

Syntax

dftphase(vec_expr)

Argument

vec_expr
A valid vector expression.

Example

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

y = dftphase(c1.y)

Given c1, a curve is created that is the phase angle of the discrete Fourier Transform of c1.

Comments

The dftphase function returns the phase angle of a discrete Fourier Transform (dFT). The dFT is complex-valued and used to map time-domain data into the frequency domain. vec_expr_1 is assumed to be evenly sampled. The resultant vector has a number of elements equal to the number of elements in vec_expr.

The dFT typically calculates the phase angle more accurately than an FFT, although it takes longer.