Dear Jan, Claus, List,
wouldn't the other fields in the SPM stuctures be messed up when you only
change the 'nscans' field of the SPM structure? SPM.xX.X (design matrix),
SPM.xX.K (filter specification) also contain matrices with the number of rows
being equal to the number of scans specified. I'm not sure whether SPM will
correct such inconsistencies when it tries to estimate a model or associate
data with the SPM structure. Would be interesting to know.
Perhaps you find this useful: we developed a batch system for SPM2 allowing
one to specify everything in a SPMBATCH structure in a script. One can then
easily change specific entries without having to re-specify others, and rerun
model estimation, for any number of subjects. See spm2-batch.sourceforge.net.
Good luck,
Bas
--------------------------------------------
Dr. S.F.W. Neggers
dept. of Psychonomics,Helmholtz Institute
Utrecht University
Heidelberglaan 2
3584 CS, Utrecht, room 17.09
the Netherlands
Tel: (+31) 30 253 4582 Fax: (+31) 30 2534511
E-mail: [log in to unmask]
Web: http://www.fss.uu.nl/psn/pionier
--------------------------------------------
Op vrijdag 12 augustus 2005 09:15, schreef Jan Gläscher:
> Dear Claus,
>
> try this at the MATLAB prompt:
>
> load(spm_get) % select the SPM.mat
> SPM.nscan = [149 149 149 149],
> save(fullfile(SPM.swd,'SPM.mat'),'SPM')
>
> Cheers,
> Jan
>
> On 2005-08-11 (Thu) at 23:16:06 +0100, Claus Lamm <[log in to unmask]>
wrote:
> > Dear colleagues
> >
> > I just realized that I commited a minor (but nevertheless probably fatal)
> > error when setting up the design for an fMRI study.
> >
> > Instead of specifiying the number of scans per run as 153 153 153 153 at
> > the prompt asking for "scans per session", I entered 149 149 149 149.
> >
> > Is there any way to change this in the generated SPM.mat?
> > Otherwise, I will have to go over the whole design setup for all my
> > subjects again ...
> >
> > Thx for your help
> >
> > Claus
|