x1t ut1ut1 x2t ut1ut5 x3t 2t1ut1ut3 for the time span of

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.

Solution

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\');

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 an
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 an

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site