Month: September 2015

  • Matlab and Freesurfer

    Some functions of Freesurfer 5.3.0 (like computing the local Gyrification Index) require integration with Matlab. In order to do this, the following code has to be in matlab’s startup.m file: %———— FreeSurfer —————————–% fshome = getenv(‘FREESURFER_HOME’); fsmatlab = sprintf(‘%s/matlab’,fshome); if (exist(fsmatlab) == 7) path(path,fsmatlab); end clear fshome fsmatlab; %—————————————————–% Also, if you are getting “ERROR: Matlab is…