Revision as of 11:56, 10 September 2008 by Nnajdek (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Part B

Original Code:

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

Updated Code:

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

The bug was Ts, which was not in small enough increments, there fore there wasn't enough points on the graph. So, I divded Ts by 1000 to give the graph many more plotting points.

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood