%------------ FreeSurfer -----------------------------%
fshome = getenv('FREESURFER_HOME');
fsmatlab = sprintf('%s/matlab',fshome);
if (exist(fsmatlab) == 7)
    path(path,fsmatlab);
end
clear fshome fsmatlab;
%-----------------------------------------------------%

%------------ FreeSurfer FAST ------------------------%
fsfasthome = getenv('FSFAST_HOME');
fsfasttoolbox = sprintf('%s/toolbox',fsfasthome);
if (exist(fsfasttoolbox) == 7)
    path(path,fsfasttoolbox);
end
clear fsfasthome fsfasttoolbox;
%-----------------------------------------------------%

setenv( 'FSLDIR', '/Applications/fsl/fsl' );
fsldir = getenv('FSLDIR');
fsldirmpath = sprintf('\%s/etc/matlab',fsldir);
path(path, fsldirmpath);
clear fsldir fsldirmpath;
%-----------------------------------------------------%

FSH = getenv('FREESURFER_HOME');
fshmatlab = sprintf('%s/matlab',FSH);
path(path,fshmatlab);
clear fshmatlab FSH;
%-----------------------------------------------------%


