Hi Marie & FreeSurfers:

I am running the LGI command on a group of brains and I am getting an error message. MATLAB opens up and begins to run when this error appears:

                            < M A T L A B (R) >
                  Copyright 1984-2011 The MathWorks, Inc.
                    R2011b (7.13.0.564) 64-bit (maci64)
                              August 13, 2011

 
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
 
>> reading filled volume...
closing volume...
{Undefined function 'fspecial' for input arguments of type 'char'.

Error in make_outer_surface (line 31)
Gaussian = fspecial('gaussian',[2 2],1);
}

I tried setting the environment using :

setenv MATLABPATH /Applications/MATLAB_2011/bin
setenv PATH ${MATLABPATH}/bin:${PATH}

However this did not help. Any advice?

thanks,

Alan