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></pre>
  
 
F0 =13;
 
F0 =13;

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)

Alumni Liaison

Followed her dream after having raised her family.

Ruth Enoch, PhD Mathematics