(Part 2)
(Part 2)
 
Line 17: Line 17:
  
  
I haven't played around with matlab enough to know how to create the signal need with my own code, I used the same code that Ben Laskowski used:
+
I haven't played around with matlab enough to know how to create the signal needed with my own code, so I used the same code that Ben Laskowski used:
  
 
----
 
----
Line 23: Line 23:
  
 
for count=1:period/delta:(nperiod+8)*period/delta
 
for count=1:period/delta:(nperiod+8)*period/delta
 +
 
     y(1,count:size(y,2))=y(1,count:size(y,2))+f(1,1:size(y,2)-count+1);
 
     y(1,count:size(y,2))=y(1,count:size(y,2))+f(1,1:size(y,2)-count+1);
 +
 
end
 
end
  

Latest revision as of 14:14, 12 September 2008

Part 1

Choose the signal $ x(t)=cos(t) $ which is periodic.

Sampling ever interger yields

This is $ x[n]=cos(n) $

but sampling at a frequency of $ \pi/4 $ yields

This is $ x[n]=cos(\pi/4n) $

Part 2

This is $ x(t)=e^{-t}cos(20t) $ as the nonperiodic signal.


I haven't played around with matlab enough to know how to create the signal needed with my own code, so I used the same code that Ben Laskowski used:


"y=zeros(size(x));

for count=1:period/delta:(nperiod+8)*period/delta

   y(1,count:size(y,2))=y(1,count:size(y,2))+f(1,1:size(y,2)-count+1);

end

plot(x,y)"


Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn