Revision as of 16:47, 11 September 2008 by Jkubasci (Talk)

Broken MATLAB code

After running the given MATLAB code, the following plot was produced:

Orig plot ECE301Fall2008mboutin.png

As seen above, the picture does not resemble a 13Hz sinusoidal wave repeated 13 times. The function that was suppose to be plotted by the code should be

$ \,x(t)=Re[e^{j(2\pi F_{o}t-\frac{pi}{2})}]\, $

$ \,x(t)=Re[cos(2\pi F_{o}t-\frac{pi}{2})+jsin(2\pi F_{o}t-\frac{pi}{2})]\, $

$ \,x(t)=cos(2\pi F_{o}t-\frac{pi}{2})\, $

which appears to be correct. However, the sampling period $ T_{s}=0.07 $ only provides 14 points on the graph, which appears to be not enough. If we increase the number of sampling points by a factor of 10 (with a new value $ T_{s}=0.007 $), the following plot is produced:

Jkubasci Fixed plot ECE301Fall2008mboutin.png

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang