Matlab: Process multiple files with given processing function