MATLAB: Impulse Response Convolution Plot

convolution impulse response

How do I plot an out put of the signals below (convolution) f(t) = t^3 and h(t) = 2δ (t)+ 2δ (t-π) over interval -2π≤t≤2π.
Thank you.

Best Answer

t=[-2*pi:2*pi]
f=@(x) x.^3;
h= 2*f(t)+ 2*f(t-pi)
plot(t,h)