I am trying to calculate the convolution of two signals $x(t)$ and $h(t)$:
I used MatLab to calculate and plot the integrals for the convolution using the following code (I know there is conv() though):
syms t r
f1 = r*(1-(t-r));
f2 = (2-r)*(1-(t-r));
i1 = int(f1,r,0,t)
i2 = int(f2,r,0,t)
i3 = int(f2,r,t-1,2)
t1=0:0.1:1;
t2=1:0.1:2;
t3=2:0.1:3;
y1 = -(t1.^2 .*(t1 - 3))/6;
y2 = (t2 .*(t2.^2 - 9*t2 + 12))/6;
y3 = -(t3 - 3).^3/6;
plot(t1,y1,t2,y2,t3,y3)
While that should be correct based on the formula for the convolution, the result seems a little bit strange...
Could the convolution be discontinious? And if no, what is going wrong with the integrals?
Thanks in advance.




