This preview shows pages 1–2. Sign up to view the full content.
ECE 220 Signals and Systems I
Fall 2007
Laboratory project 2
Report due:
The purpose of this project is to use MATLAB for the support of the “manual”
computation of convolution (and practice signal manipulations and plotting), and to study
causality of some linear timeinvariant systems.
1. Signal generation
You will need two signals in this exercise: one for the system input and another for the
impulse response. Recall that while the impulse response characterizes the system it is
also a signal: the response of the system to the unit impulse.
Use the Lab_1 function, introduced in Exercise 1, for one of the signals. For the other
signal, write a new function by modifying Lab_1, the following way:
function[x] = Lab_2(t);
⇐
x= zeros(1, length(t));
for i = 1: length(t)
if (t(i)>=

⇐
x(i) = 1;
⇐
else
x(i) = 0;
end
end
(The arrows
⇐
indicate the lines that you need to modify.) What mathematical function
is Lab_2(t)? Plot this function. (Note: this MATLAB function code could be made two
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview. Sign up
to
access the rest of the document.
 Fall '08
 JANOS

Click to edit the document details