I want to write a code for convolution of two functions (e.g., lorentzian and exponential) in Matlab. I am familiar with basics of Matlab, but not familiar with convolution of the functions.
First generate your lorentzian and laplacian sequences, namely f1 and f2, within a desired range. After that, use y=conv(f1,f2) to convolve the sequences, obtaining a sequence y with a larger range length(f1)+length(f2)-1. To represent the result, you only have to be careful of the sample corresponding to zero time. As my colleges have said, there are lots of useful tutorials around the web.
Make sure you know how to read and interpret the result. I suggest you start by using a couple of very short sequences (say, N=4), so you can do it by hand and compare the result with MATLAB's.