Revision as of 08:42, 11 September 2008 by Phscheff (Talk)

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

Fixing Matlab Code

The code provided:

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)

The problem here is that the code is not sampling fast enough. Increasing the rate at which it samples will provide a higher resolution image. To do this we must change Ts. I chose to change it to .0001.

F0 =13;

T0 =1/F0;

Ts = 0.0001;

t  = 0:Ts:13*T0;

x = real(exp(j*(2*pi*F0*t-pi/2)));

plot(t,x)

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood