I am writing a program that works with Fourier transform. For conversion I use the C ++ library fftw . In general, an array of real numbers is sent to the input and at the output I get an array of complex numbers. I need to build a graph of the result. What should I do with the resulting numbers?

    1 answer 1

    Option 1

    Build two graphs: the real and imaginary parts separately. y(i) = Re(x[i]) , y(i) = Im(x[i])

    Option 2

    Build two graphs: module and phase separately. y(i) = Abs(x[i]) , y(i) = Arg(x[i])

    Option 3

    Build a graph, where the amplitude of the point will be the module, and its color will be the phase of the complex number.

    • Either in the opengl elevation map and free camera) - vp_arth
    • @vp_arth is rather for continuous Fourier transform. Or at least for discrete on the grid. And so it turns out one-dimensional grid - my version 3 - int3