adding script to compute kernels in matlab