Question: Matlab code: close all clear clc T_s = 0.01; t = 0:T_s:2; x = [ones(1,101) zeros(1,100)]; % Option 1 h = [ones(1,201)] plot(t,x); grid on

Matlab code:
close all
clear
clc
T_s = 0.01;
t = 0:T_s:2;
x = [ones(1,101) zeros(1,100)]; % Option 1
h = [ones(1,201)]
plot(t,x); grid on
ylim([0 2])
%%
figure;
y = conv(x,h)*T_s;
t_conv = 0:T_s:4;
plot(t_conv,y); grid on
1. Given x(t) and h(t), find y(t)=x(t)h(t) x(t)=2u(t)2u(t1)h(t)=3u(t)3u(t2)u(t)isaunitstepfunctionu(t)={10t0otherwise - Validate your answers using MATLAB. Include the plots generated using MATLAB. (See topic2_ex_conv.m)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
