(New page: =Finding the Bug= In this particular code, Ts is equal to 1/13. Which points that it will only draw 14 points and it is way too little for making a graph. In order to fix it, we need to gi...)
 
(Finding the Bug)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
=Finding the Bug=
 
=Finding the Bug=
In this particular code, Ts is equal to 1/13. Which points that it will only draw 14 points and it is way too little for making a graph. In order to fix it, we need to give more points by giving points more frequently by decreasing Ts (time period).
+
In this particular code, Ts is equal to 1/13. Which points that it will only draw 14 points and it is way too little for making a graph. In order to fix it, we need to give points more frequently by decreasing Ts (time period).
 
<pre>
 
<pre>
 
F0 =13;
 
F0 =13;
Line 12: Line 12:
  
  
[[Image:http://www.dan-dare.org/FreeFun/Images/CartoonsMoviesTV/BugsLifeWallpaper800.jpg|thumb|right|A bug to be found]]
+
[[Image:BugsLifeWallpaper800_ECE301Fall2008mboutin.jpg|thumb|right|A bug to be found]]

Latest revision as of 11:11, 10 September 2008

Finding the Bug

In this particular code, Ts is equal to 1/13. Which points that it will only draw 14 points and it is way too little for making a graph. In order to fix it, we need to give points more frequently by decreasing Ts (time period).

F0 =13;
T0 =1/F0;
Ts = 0.000001; % It was 0.07 before
t  = 0:Ts:13*T0;
x = real(exp(j*(2*pi*F0*t-pi/2)));
plot(t,x)


A bug to be found

Alumni Liaison

Ph.D. on Applied Mathematics in Aug 2007. Involved on applications of image super-resolution to electron microscopy

Francisco Blanco-Silva