Hi Xuelin,
> When I use matlab to save NIFTI data, the error showed on the matlab command window: FSLOUTPUTTYPE is not set.
Try running this in Matlab, before you use the other FSL Matlab functions:
fslsh = '/Users/xuelin/fsl/etc/fslconf/fsl.sh';
system(['sh -c "source ' fslsh '"']);
after that, test it with:
system(['sh -c "echo $FSLOUTPUTTYPE"']);
which should print something like NIFTI_PAIR to the screen.
Does that help?
Ged.
|