Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

x1(t) = u(t+1)-u(t-1) x2(t) = u(t+1)-u(t-5) x3(t) = (2t+1)[u(t+1)-u(t-3)] for th

ID: 2313305 • Letter: X

Question

x1(t) = u(t+1)-u(t-1) x2(t) = u(t+1)-u(t-5) x3(t) = (2t+1)[u(t+1)-u(t-3)] for the time span of -10 to 10 seconds. b. Use ‘conv’ command in MATLAB and compute and plot the following signals: y1= x1(t)*x2(t) Solve this problem by hand and compare your results. Submit your hand calculation along with your report. c. Use ‘conv’ command in MATLAB and compute and plot the following signals: y2= x1(t)*x3(t) Solve this problem by hand and compare your results. Submit your hand calculation along with your report.

Explanation / Answer

x1(t)=u(t+1)-u(t-1)

x2(t)=u(t+1)-u(t-5)

x3(t)= (2t+1)[u(t+1)-u(t-3)]

-10<= t<=10

y1=x1(t)*x2(t)

matlab code:

close all;

clear all;

clc;

x1=[0 0 0 0 0 0 0 0 0 01 0 1 0 0 0];

%x1(t)= 1 for t= -1 and 1

x2=[0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0];

x2(t)= 1 for t=-1and 5

z=conv(x,y);

subplot(3,1,1);

stem(x);

xlabel('time');

ylabel('amplitude');

title('time signal-1');

subplot(3,1,2);

stem(y);

xlabel('time');

ylabel('amplitude');

title('time signal-2');

subplot(3,1,3);

stem(z);

xlabel('time');

ylabel('amplitude');

title('convoluted signal');