Hi Cathy
You are getting that error likely because your Matlab version is too old (before 2011) and it doesn't support 'matlabpool' parallel computing. Also, I notice that you are using only a single random effect (the second column of your design matrix). In that case I don't expect a significant increase in power from the spatiotemporal model. So you can simply use the traditional vertex-wise model
lhstats = lme_mass_fit_vw(X,[2],Y,ni,lhcortex);
You can find as attachment a non-parallel version of those scripts that may work on your Matlab version (I have not written the non-parallel version of the spatiotemporal model yet). The scripts are name as their parallel versions but with the sufix "1".
Best -Jorge
De: Catherine Bois C.Bois@sms.ed.ac.uk Para: freesurfer@nmr.mgh.harvard.edu Enviado: Miércoles 19 de junio de 2013 10:39 Asunto: [Freesurfer] error in lme_mass_fit using matlab tools
Dear Freesurfer experts,
I have a question about fitting linear mixed models to mass-univariate data using the lme tools in matlab.
I am currently trying to compute the initial vertex-wise temporal covariance estimates by [lhTh0lhRe] = lme_mass_fit_EMinit(X,[2],ni,lhcortex,3]
However, I keep getting this error message:
Undefined function 'matlabpool' for input arguments of type 'char'.
Error in lme_mass_fit_init (line 74) if (prs==1) || (matlabpool('size') ~= prs)
Error in lme_mass_fit_EMinit (line 69) [Theta1,Re1] = lme_mass_fit_init(X,Zcols,Y,ni,[],prs);
I have defined X, Y etc according to the previous steps available on the wiki. Would be very grateful for any clarification on why this error message keeps coming up.
Thank you very much,
Cathy
-- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.