Dear Freesurfers,

Is there a way to turn N .mgh files in to a single output .mgh file in which each vertex is the mean of the corresponding vertices in my input files?

For example, input  lh.Ctrl029.fsaverage.mgh ,  lh.Ctrl030.fsaverage.mgh , lh.Ctrl031.fsaverage.mgh , lh.Ctrl032.fsaverage.mgh >>> output lh.mean.fsaverage.mgh


Thanks,

Vale