[Numpy-discussion] FFT and reconstruct
Vasco Gervasi
yellowhat46 at gmail.com
Sat May 21 01:47:38 EDT 2016
Maybe I found the problems;
1. t0=1.0, t1=3.0, y['1'] = cos(1.0*omega*t): I have to reconstruct the
signal using
> yRec += a * cos(omega*i*(t-t0) + f)
not
> yRec += a * cos(omega*i*t + f)
2. t0=2, t1=3, y['Signal'] = 1.0*cos(1.0*omega*t) + ... +
5.0*cos(5.0*omega*t) + 1.0: starting point and end point must not be the
same, so to generate the signal I have to use
> t = linspace(t0, t1, 1000, endpoint=False)
not
> t = linspace(t0, t1, 1000)
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160521/37d9371d/attachment.html>
More information about the NumPy-Discussion
mailing list