I've found recently, now that we have upgraded to Matlab 2011a, that many of these functions no longer work properly. When using read_nii_img we are now getting an error saying:
??? Undefined function or method 'read_nii_img' for input arguments of type 'char'
We had successfully run these programs before, but since the update they have not been working. Do you have any suggestions to perhaps work around this? Thanks much!
It seems that "load_nii_hdr" in "apply_fsl_transformation_matrix" has been modified. It should look like this "function [hdr, filetype, fileprefix, machine] = load_nii_hdr(fileprefix)". i.e. It should have 4 output arguments, which is exactly the same amount as "load_untouch_nii" asked for.
Hi,
using 'load_nii_hdr' within 'load_untouch_nii' I get the following error message:
??? Error using ==> load_nii_hdr
Too many output arguments.
Error in ==> load_untouch_nii at 103
[nii.hdr,nii.filetype,nii.fileprefix,nii.machine] = load_nii_hdr(filename);
Error in ==> apply_fsl_transformation_matrix at 5
vox = load_untouch_nii('/SCR2/DTI/det_track/BM3K/trans/Sem_fun_roi.nii');
Thanks for your help!
Michael
NIfTI supports both ".nii" and ".img/.hdr" file extension. If you do not provide any file extension, it will look for ".img/.hdr" files by default. Therefore, you can easily solve your problem by provide appropriate file extension. e.g. nii = load_nii('filtered_func_data.nii');
Comment only