Print

Print


Dear Jan,
 
Many thanks. One more question: how to use a script saving the name of Analyze format images(.hdr/.img or .nii) as other name.img or name.nii in other dirctory in matlab? Thanks in advance.
 
Haibo.> Date: Fri, 18 Jul 2008 09:45:55 -0700> From: [log in to unmask]> Subject: Re: [SPM] Script for estimating a lot of SPM.mat> To: [log in to unmask]> > 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://cn.msn.com