Suppose I have large text file filled with numerical data. Then I do Fourier
operation with this file and plot the result:
dataf = Import["filename.txt", {"Data", {All}, {2}}];
numbert = 800/0.05;
T = 800;
fourier = Sqrt[2 Pi]/Sqrt[numbert]* Abs[Fourier[dataf]];
ListPlot[fourier,
Joined -> True, PlotRange -> {{0, 10}, {0, 1}},
DataRange -> {0, 2 Pi numbert/T}]
How can I obtain numerical values of frequencies detected by ListPlot
?
I tried FindPeaks
, but it gets me big amount of data I can't work with.
I searched for examples, but didn't find anything helpful.
FindPeaks
(a smooth scale) or specify minimum peak height by the fourth parameter. $\endgroup$FourierParameters
option would clean up some of the constants in your code. $\endgroup$