(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
However when we lower the Ts value considerably,say Ts=0.7/100 we increase the step size and get a clearer sinusoidal wave. | However when we lower the Ts value considerably,say Ts=0.7/100 we increase the step size and get a clearer sinusoidal wave. | ||
− | '''Matlab code:''' | + | '''Matlab code:'''. <pre>F0 =13; |
− | + | ||
− | F0 =13; | + | |
T0 =1/F0; | T0 =1/F0; | ||
Ts = 0.07/100; | Ts = 0.07/100; | ||
Line 15: | Line 13: | ||
x = real(exp(j*(2*pi*F0*t-pi/2))); | x = real(exp(j*(2*pi*F0*t-pi/2))); | ||
plot(t,x) | plot(t,x) | ||
+ | </pre> |
Latest revision as of 16:31, 9 September 2008
Problem Since the Ts value is quite large,ie .07 and the period of the sinusoidal t0 = .0769 So, we cant plot 13 ycles of 13Hz accurately as we hardly get 1 point in each cycle.
Solution
However when we lower the Ts value considerably,say Ts=0.7/100 we increase the step size and get a clearer sinusoidal wave.
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)