MATLAB: Matlab won’t load .nii images anymore

niftynii

I used to be able to load .nii files in Matlab but tried again recently and I can't do it on this system. Here is my command window:
>> A = load_nii( filename ); Undefined function 'xform_nii' for input arguments of type 'struct'.
Error in load_nii (line 185) nii = xform_nii(nii, tolerance, preferredForm);

Best Answer

load_nii is from a File Exchange Contribution