an example code for batch processing files with matlab