Unformatted text preview: t with proper limits so that all nonzero values of the signals are included. Make sure you use a stepsize small enough to accurately represent your signals (like 0.01 or so). b) Generate arrays x and h for different values of t . You may find the Matlab commands zeros and find useful. For example, if we want to generate a vector u that represents the unit step function u ( t ) for t between 5 and 5, we can do the following: t=5:0.01:5; u=zeros(1,length(t)); index_u=find(t>=0); u(index_u)=1; c) Convolve vectors x and h using the Matlab conv command. Notice that the resulting vector y will be of length length(y)= length(x)+length(h)1 so you need to generate a new time array t2 to represent this additional length when you plot y. Notice that the limits of t2 depend on how you originally generated t. d) Compensate for the fact that you are using a stepsize other than one....
View
Full
Document
 Fall '08
 Staff

Click to edit the document details