Hi Franziska,
looks to me that for some reason it does not find the vec function which should be part of the package under ..freesurferpath/matlab/vec.m
so maybe you just need to source FreeSurfer in the shell before you start matlab (from that same shell).
Best, Martin
On 11/21/2014 02:25 PM, franziska baier wrote:
Hi, I am from Frankfurt, Germany and I want to use Freesurfer and matlab for the analysis of my longitudinal brain structural data. I want to use linear mixed effects modelling, however, I receive an error message when I execute [lhTh0,lhRe] = lme_mass_fit_EMinit(X,[1 2],Y,ni,lhcortex,3); in matlab. The error message says: Undefined function 'vec' for input arguments of type 'double'. Error in lme_mass_fit_init (line 117) vecD = vec(D); Error in lme_mass_fit_EMinit (line 69) [Theta1,Re1] = lme_mass_fit_init(X,Zcols,Y,ni,[],prs) I have already replaced parfor by for. However, my Matlab version is from 2011. It would be great if you could help me with that! Thanks in advance, Franziska
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu