Hi all,
I have matfiles that are just arrays of small numbers. I want to convert them into nifti files. any suggesstion on how to do that? am i doing it correctly and am i supposed to choose t1? also is there a way to convert more that one file at at time?

댓글 수: 1

Abhinav
Abhinav 2023년 1월 16일
Hi Mina
To convert .mat file into NIFTI, you would first need to build a NIFTI structure from the 3D matrix, and then save the NIFTI structure.
Something like this:
nii_img = make_nii(t1);
save_nii(nii_img, 't1.nii');
Refer to the following documention to learn more about NIFTI structure

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Neuroimaging에 대해 자세히 알아보기

태그

질문:

2022년 5월 5일

댓글:

2023년 1월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by