(New page: <pre> F0 =13; T0 =1/F0; Ts = 0.07; t = 0:Ts:13*T0; x = real(exp(j*(2*pi*F0*t-pi/2))); plot(t,x) </pre> The graph produced by this code is a wave that appears "blocky". There reason f...) |
(No difference)
|
Revision as of 16:34, 11 September 2008
F0 =13; T0 =1/F0; Ts = 0.07; t = 0:Ts:13*T0; x = real(exp(j*(2*pi*F0*t-pi/2))); plot(t,x)
The graph produced by this code is a wave that appears "blocky". There reason for this is because the sampling step is too large. By roducing it, Matlab will generate more points along the wave, fixing the form. Below is an example of how to fix this problem:
F0 =13; T0 =1/F0; Ts = 0.001; t = 0:Ts:13*T0; x = real(exp(j*(2*pi*F0*t-pi/2))); plot(t,x)