Hi Xuelin,
> I am not quite sure about what did you guys mean by "not correctly
> setting the envioronmental variable". When I type "echo $FSLDIR",
> terminal reponse me with the right path.
Good, but maybe within Matlab this is not set. If you start Matlab
from the same terminal that you did the above, then it should be fine.
But if not, then you'll need to set the environment within Matlab,
e.g. doing something like:
fslsh = '/my/path/to/fsl/etc/fslconf/fsl.sh';
system(['sh -c "source ' fslsh '"']);
and maybe test things with something like:
cmd = 'avwstats++ $FSLDIR/etc/standard/avg152T1 -x';
[stat out] = system(['sh -c "' cmd '"'])
Ged.
|