matlab scripts for postprocessing