(*真是很久没看FFT那些东西了,很多都快忘l*)
s = 2 + 3*Cos[2*Pi*50*# + Pi*(-30)/180] +
1.5*Cos[2*Pi*75*# + Pi*90/180] & /@ Range[0, 1, 1/256];
ListLinePlot[s]
Y = Fourier[s, FourierParameters -> {1, -1}];
Ayy = Abs[Y];
ListLinePlot[Ayy, PlotRange -> All]
Ayy = Ayy/(256/2);
Ayy[[1]] = Ayy[[1]]/2;
F = (Range[1, 256] - 1)*256/256;
data = Transpose[{Take[F, 128], Take[Ayy, 128]}];
ListLinePlot[data, PlotRange -> Full]
(*相位我就懒的弄了*)