Line 1: Line 1:
 +
== Part 1 ==
 +
 
<pre>
 
<pre>
 
% Periodic Signal with frequency 2*pi Hz.
 
% Periodic Signal with frequency 2*pi Hz.
Line 13: Line 15:
  
 
[[ image:parta.jpg _ECE301Fall2008mboutin]]
 
[[ image:parta.jpg _ECE301Fall2008mboutin]]
 +
 +
== Part 2 ==
 +
<pre>
 +
t=[0:0.1:35];
 +
y=cos(t)+cos(pi*t);
 +
y4=y;
 +
for k=0:10:20000
 +
    y2=cos(t-k)+cos(pi*(t-k));
 +
    y4=y4+y2;
 +
end
 +
plot(t,y); % non-periodic Signal
 +
figure
 +
plot(t,y4); % almost preiodic signal
 +
</pre>
 +
 +
[[ image:parta2.jpg _ECE301Fall2008mboutin]]

Latest revision as of 16:07, 9 September 2008

Part 1

% Periodic Signal with frequency 2*pi Hz.
t=[0:0.001:40];
y=sin(t);
plot(t,y);

% Sampling Frequency 0.25 Hz
t=[0:4:40];
y2 = sin(t);
figure
plot(t,y2);

File:Parta.jpg ECE301Fall2008mboutin

Part 2

t=[0:0.1:35];
y=cos(t)+cos(pi*t);
y4=y;
for k=0:10:20000
    y2=cos(t-k)+cos(pi*(t-k));
    y4=y4+y2;
end
plot(t,y); % non-periodic Signal
figure
plot(t,y4); % almost preiodic signal

File:Parta2.jpg ECE301Fall2008mboutin

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood