Here is the program for convolution of two continuous sequences in MATLAB:

x=[1 0 -1 1 1];
t1=length(x);
h=[1 1 1 1 1];
t2=length(h);
y=conv(x,h);
t=1:1:t1+t2-1;
plot(t,y)

Advertisements