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
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to