a matlab function to create latex tables from matrices