I play with octave fft functions and I cannot figure out how to scale their output: I use the following (very short) code to approximate the function:
function y = f(x) y = x .^ 2; endfunction; X=[-4096:4095]/64; Y = f(X);
Basically, what he does is take a function, calculate the interval image, fft-it, then save a few harmonics and, if the result. However, I get a graph that is vertically compressed (the vertical output scale is incorrect). Any ideas?
fft gnuplot octave
Clement
source share