(New page: == Problem == The problem of the program is that the Ts value is too big. T0=1/F0=0.76, and Ts=0.7 is almost a whole period. So The step of the approximation is too big. == Fix == decr...) |
(→Fix) |
||
Line 7: | Line 7: | ||
== Fix == | == Fix == | ||
− | + | Decrease the value of Ts. | |
− | + | ||
== Matlab Code == | == Matlab Code == |
Revision as of 16:55, 3 September 2008
Problem
The problem of the program is that the Ts value is too big. T0=1/F0=0.76, and Ts=0.7 is almost a whole period. So The step of the approximation is too big.
Fix
Decrease the value of Ts.
Matlab Code
f0=13; t0=1/f0; ts=0.07/100; t=0:ts:13*t0; x=real(exp(j*(2*pi*f0*t-pi/2))); plot(t,x);