Print

Print


Dear Jan,
 
It works. I really appreciated your kindly help.
 
Haibo> Date: Fri, 18 Jul 2008 09:45:55 -0700> From: [log in to unmask]> To: [log in to unmask]> CC: [log in to unmask]> Subject: Re: [SPM] Script for estimating a lot of SPM.mat> > Dear Haibo,> > if you are using SPM5 you can do the following for> n *configured* SPM.mat files:> > %1. collect your SPM.mat files in a cell array> spmmat{1} = '/path/to/1st/folder/SPM.mat';> ...> spmmat{n} = '/path/to/nth/folder/SPM.mat';> > % setup jobs struct> for j = 1:length(spmmat)> jobs{1}.stats{j}.fmri_est.spmmat = spmmat(j);> jobs{1}.stats{j}.fmri_est.method.Classical = 1;> end> > % estimate via job manager> spm_jobman('run',jobs')> > NOTE1: jobs{1}.stats{j}.fmri_est.spmmat has to be a cell array.> NOTE2: I think it doesn't matter whether the loop runs over> jobs{1}.stats{j} or jobs{j}.stats{1}.> > Cheers,> Jan> > > <Haibo> <Xu> wrote:> > Dear SPM list:> > > > I have a stupid question: how to write a script in matlab for estimating a > > lot of SPM.mat sequantially after making a lot of design matrix? Thanks in > > advance.> > > > Haibo> > > > -- > Jan Gläscher, Ph.D. Div. Humanities & Social Sciences> +1 (626) 395-3898 (office) Caltech, Broad Center, M/C 114-96> +1 (626) 395-2000 (fax) 1200 E. California Blvd> [log in to unmask] Pasadena, CA 91125> 
_________________________________________________________________
MSN史诗巨片横空出世,精彩抢先看!
http://im.msn.cn/