Hi Rajat,

fslmaths should be able to do this:

fslmaths subj1_4D.nii.gz -add subj2_4D.nii.gz -add subj3_4D.nii.gz -div 3 avg_4D.nii.gz

Cheers,

Paul

On 10 September 2015 at 09:32, Rajat Thomas <[log in to unmask]> wrote:
Dear FSLers,

Is there a simple way to average 4D volumes of n-subjects to get an average 4D-volume
(i.e., each voxel is the average of all voxels?)

Thanks.
Rajat