Dear Prof. Yan
I would like to write a 3-dimensions array (61*73*61) with many numbers with less than 1 into a .nii format file using Header of AAL3_61x73x61_YCG.nii. However, the numbers in the array seems to be rounded down after writing to a .nii file. It seem to be the problem of the Header.
Do you have an effective solution to this problem?
Best wishes,
Zeqiang Linli
YAN Chao-Gan
Mon, 11/23/2020 - 22:47
Permalink
You should change the header
You should change the header before y_Write:
Header.pinfo = [1;0;0]; Header.dt =[16,0];