I tried your script, and the matlab command windows echos: "NIFTI_GZ". It is the one that is supposed to be there?
thanks
XC
----- Original Message -----
From: Ged Ridgway <[log in to unmask]>
Date: Friday, July 27, 2007 5:22 am
Subject: Re: [FSL] FSLOUTPUTTYPE setting error
To: [log in to unmask]
> 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.
>
|