added function for pasting in matlab