Add BatchToCSV matlab function