I have a file, filled with data like this:
As you can see the approximate frequency is about $5/1000 = 0.005$, then angular frequency is about $2 \pi \times 0.005 \approx 0.03$.
Then I use discrete Fourier to obtain this frequency
num = 3000;
time = 30;
ListPlot[(Sqrt[2 Pi]/Sqrt[num]) Abs[Fourier[list]], Joined -> True,
PlotRange -> {{0, 0.07}, {0, 5}} , DataRange -> {0, 2 Pi/0.01}]
(here I used $0.01$ which is $time/num$)
but the result is the following:
And the plot is going down with no peaks anymore (except mirror reflection on the right side).
So, what's wrong?
EDIT: If I delete PlotRange, the maximum of frequency lies to the left from the value 100. So I correct your PlotRange and then I get, for example, that maximum of frequency lies to the left from 50 and so on. Finally I'll finish with my picture and the maximum of frequency will be 0.
EDIT: Okay, I subtracted the average value from the list:
ListPlot[(Sqrt[2 Pi]/Sqrt[number]) Abs[Fourier[list - Mean[list]]],
Joined -> True, PlotRange -> {{0, 10}, {0, 0.01}},
DataRange -> {0, 2 Pi/0.01}]
Now there are two peaks, but where is frequency $\approx 0.03$?
Fourier
function does not scale the x axis. $\endgroup$