Revision as of 04:36, 12 September 2008 by Serekson (Talk)

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

Matlab Code

This matlab code will achieve the desired results. All I did was make the Ts value 1/10 of its original value. What was happening was the sampling rate was too large and even though it looked a little like a sine wave, we were really getting parts from different periods connected together.

F0 = 13;
T0 = 1/F0;
Ts = 0.007;
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