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

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

Dr. Paul Garrett