Fast Fourier transform: Difference between revisions
Content added Content deleted
m (→fft command) |
m (→fft command: more complicated than that for complex input (the output is actually reversed)) |
||
Line 2,783: | Line 2,783: | ||
=== fft command === |
=== fft command === |
||
Stata can also compute FFT using the undocumented '''fft''' command. Here is an example showing its syntax. A time variable must have been set prior to calling this command. Notice that in order to get the same result as Mata's fft() function, in both the input and the output variables the imaginary part must be passed '''first''' |
Stata can also compute FFT using the undocumented '''fft''' command. Here is an example showing its syntax. A time variable must have been set prior to calling this command. Notice that in order to get the same result as Mata's fft() function, in both the input and the output variables the imaginary part must be passed '''first'''. |
||
<lang stata>clear |
<lang stata>clear |