This function calls mri_convert to convert MGH/MGZ files to NIfTI, then reads it in using readnii
mri_convert
readnii
readmgz(file) readmgh(file)
file
(character) input filename
Object of class nifti
nifti