I came across your MATLAB code on loading and viewing .nii files. I am presently working on brain mapping and brain imaging of Autism patients. I have got the mri images of patients from ABIDE database. But I am really new to MATLAB. I am not able to understand how this code will work. It says to replace the filename with the name of file, I did the same. But I guess it needs some more editing so that i could use it. Could you please help me out as in how to use this code.