(New page: == Finding the bug ==)
 
(Finding the bug)
Line 1: Line 1:
  
 
== Finding the bug ==
 
== Finding the bug ==
 +
 +
<pre>%    Ts was originally set to 1/13 and displayed only one cycle. Since we want 13
 +
%    cycles, divide this previous result by 13 again.
 +
 +
F0 =13;
 +
T0 =1/F0;
 +
Ts = T0/13;
 +
t  = 0:Ts:13*T0;
 +
x = real(exp(j*(2*pi*F0*t-pi/2)));
 +
plot(t,x)
 +
</pre>

Revision as of 09:44, 12 September 2008

Finding the bug

%    Ts was originally set to 1/13 and displayed only one cycle. Since we want 13
%    cycles, divide this previous result by 13 again.

F0 =13; 
T0 =1/F0; 
Ts = T0/13; 
t  = 0:Ts:13*T0; 
x = real(exp(j*(2*pi*F0*t-pi/2)));
plot(t,x)

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn