(a) x (τ) (b) h (t − τ) (c) y (t)
(a) x (τ) (b) h (t − τ) (c) y (t)
Problem 1 The signals x( ) and h(t ) are plotted as functions of in Figures (1a) and (1b) respectively. We rst observe that these two signals have regions of nonzero overlap, regardless of the value of t. When t 3 0, the product of x( ) and h(t ) is non-zero for < < t 3, and the convolution integral becomes t3 1 y (t) = e2 d = e2(t3) . 2 For t 3 0, the product x( )h(t ) is nonzero for < < 0, so that the convolution integral is 0 1 e2 d = . y (t) = 2 The resulting output signal is depicted in Figure (1c).
1 x()=e2u(-)
0 t
(a) x( )
(b) h(t )
(c) y (t)
Problem 2 MATLAB code: x=ones(1,10); h=ones(1,10); %% perform discrete convolution of x and h m=length(x); n=length(h); X=[x,zeros(1,n-1)]; H=[h,zeros(1,m-1)]; Y = zeros(1,n+m-1); t=0:n+m-2; % index for i=1:n+m-1 h t tau = zeros(1,n+m-1); % h(t-tau) t tau = i-n+1:i; % t-tau h t tau(t tau(t tau>0)) = fliplr(h(1:sum(t tau>0))); OR = X .* h t tau; % overlap region Y(i) = sum(OR); figure(1) subplot(2,2,1) stem(t,X) axis([0 m+n 0 3]) title(x(\tau)) xlabel(\tau) subplot(2,2,3) stem(t,h t tau) axis([0 m+n 0 3]) title([h(t-\tau), t = , num2str(i - 1)]) xlabel(\tau) subplot(2,2,2); stem(t,OR); axis([0 m+n 0 3]); title(Overlap Area); xlabel(\tau) subplot(2,2,4); stem(t,Y); axis([0 m+n 0 15]); title(Resulting Plot at Current State); xlabel(t)
pause end %% use built-in MATLAB function to perform convolution Y2= conv(x,h); figure(2) stem(t,Y2); axis([0 m+n 0 15]);
Problem 3 (a) v (t) = u(t + 3) u(t 5) h(t) = v (t) (t td ) So h(t) = u(t + 3 td ) u(t 5 td ).
1 h(t)
-3+td
5+td
|h(t)|dt < .