Revision as of 12:33, 12 September 2008 by Jwise (Talk)

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


%{
  Jeremiah Wise
  9/12/08
  HW #2 Part B
  
  This program plots and displays 13 cycles of a 13 Hz sinusoid. The
  problem with the original program was that the time step was too
  small.
%}

Fo = 13;
To = 1 / Fo;
Ts = 0.0007;
t = [0 : Ts : (13 * To)];

x = real(exp(j * (2 * pi * Fo * t - pi/2)));
plot(t, x);

Alumni Liaison

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

Dr. Paul Garrett