This function calls mri_convert to convert MGH/MGZ files to NIfTI, then reads it in using readnii

readmgz(file)

readmgh(file)

Arguments

file

(character) input filename

Value

Object of class nifti