(New page: == Fing the Bug == The following MATLAB code cannot plot 13 cycles of a 13Hz sinusoid because this code has too large step function. F0=13; T0=1/F0; Ts=0.07; t=0:Ts:13*T0; x=real(exp(j*(...)
 
(Fing the Bug)
Line 10: Line 10:
  
 
[[image:0.jpg]]
 
[[image:0.jpg]]
 +
 +
To plot 13 cycles of a 13Hz sinusoid, I reduced the value of step function.
 +
 +
Ts=0.07*0.01;
 +
 +
[[image:1.jpg]]

Revision as of 03:06, 12 September 2008

Fing the Bug

The following MATLAB code cannot plot 13 cycles of a 13Hz sinusoid because this code has too large step function.

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)

File:0.jpg

To plot 13 cycles of a 13Hz sinusoid, I reduced the value of step function.

Ts=0.07*0.01;

1.jpg

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett