Hi Monalisa,
I understand that you have ".mat" files, and you want to convert all of them into "NIFTI" files. You would need to build a "NIFTI" structure from the matrix contained in each ".mat" file and then save the "NIFTI" structure as a "NIFTI" file.
To convert the ".mat" files into "NIFTI" files, you can refer to the following discussion link, which provides insights on how to convert ".mat" files into "NIFTI" format using MATLAB.
Additionally, you can refer to the following documentation to learn more about the "NIFTI" structure and its usage.
Thanks,
Akash.