Convert data between MATLAB and Nifti format