how to do convolution Of this x1 and x10 function ?

3 views (last 30 days)
fs=100;
Ts=1/fs;
t= [-1:Ts:3];
x1 = 2*rectpuls(t-0.5);
figure(1);
plot(t,x1);
axis ([-1 3 -1 3]);
xlabel ('time(sec)')
ylabel ('2rect(t-0.5)')
title ('f(t)')
x10 = 0.5*rectpuls(0.5*t -0.5);
figure(2);
plot(t,x10);
axis ([-1 3 -1 3]);
xlabel ('time(sec)')
ylabel ('0.5rect(0.5t-0.5')
title ('g(t)')

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 29 Sep 2019
Edited: KALYAN ACHARJYA on 29 Sep 2019
result=conv(x1,x10);
plot(result);
Please do all other axes labeling and title

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!