# MATLAB: A program that computes and plots the convolution of the functions

convolution using matlab

function convl(x,h)% laplace transform each function,% compute the product, so convolve themcon = laplace(x)*laplace(h);% inverse transform will be the convolution of x and hxh = ilaplace(con);% display the result as a functionpretty(xh)% and plotezplot(xh)
syms tf1 = sin(t);f2 = cos(t);convl(f1,f2)
t sin(t)--------    2
%