Wil,
We have been using a batch file which I have modified to successfully
have multiple parametric modulators. I've attached the code below
where the multiple parameters are specified for, in this case, Condition
2 (designated by U(2)). As you can see, that for each U(n) you can have
multiple P(n)'s.
I hope this helps.
-DJ
Donald Bolger
NIH Postdoctoral Fellow
Northwestern University
spm_defaults;
% Specify design
%=======================================================================
=
% number of scans and session, e.g. [128 128 128] for 3 sessions
%-----------------------------------------------------------------------
-
SPM.nscan = 480;
% basis functions and timing parameters
%-----------------------------------------------------------------------
-
% OPTIONS:'hrf'
% 'hrf (with time derivative)'
% 'hrf (with time and dispersion derivatives)'
% 'Fourier set'
% 'Fourier set (Hanning)'
% 'Gamma functions'
% 'Finite Impulse Response'
%-----------------------------------------------------------------------
-
SPM.xBF.name = 'hrf';
%SPM.xBF.length = 32.2; % length in seconds
%SPM.xBF.order = 2; % order of basis set
SPM.xBF.T = 16; % number of time bins
per scan
SPM.xBF.T0 = 12; % first time bin (see slice
timing)
SPM.xBF.UNITS = 'scans'; % OPTIONS: 'scans'|'secs' for
onsets
SPM.xBF.Volterra = 1; % OPTIONS: 1|2 = order of
convolution
% Trial specification: Onsets, duration (UNITS) and parameters for
modulation
%-----------------------------------------------------------------------
----
SPM.Sess(1).U(1).name = {'O+P+ Prime'};
SPM.Sess(1).U(1).ons = Cond1pr';
SPM.Sess(1).U(1).dur = 0;
SPM.Sess(1).U(1).P(1).name = 'none';
SPM.Sess(1).U(2).name = {'O+P+ Target'};
SPM.Sess(1).U(2).ons = Cond1tg';
SPM.Sess(1).U(2).dur = 0;
SPM.Sess(1).U(2).P(1).name = 'graph1';
SPM.Sess(1).U(2).P(1).P = graph1';
SPM.Sess(1).U(2).P(1).h = 1;
SPM.Sess(1).U(2).P(1).i = [2 2];
SPM.Sess(1).U(2).P(2).name = 'phon1';
SPM.Sess(1).U(2).P(2).P = phon1';
SPM.Sess(1).U(2).P(2).h = 1;
SPM.Sess(1).U(2).P(2).i = [2 3];
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
On Behalf Of William Cunningham
Sent: Tuesday, August 28, 2007 7:54 AM
To: [log in to unmask]
Subject: [SPM] return to: Multiple modulators using the multiple
conditions option- SPM5
Hello all,
I saw this discussion from last year, and I was wondering whether anyone
had
found a work around for this.
Specifically, is there a way to batch (presumably through the multiple
conditions option) multiple parametric modulators for a single
condition?
Thanks again (and thanks for the answers to my previous questions this
month).
Best,
Wil
On Wed, 6 Dec 2006 17:47:31 +0100, Volkmar Glauche
<[log in to unmask]> wrote:
>Emmanuel,
>
>From reading the code, I understand that this is currently not
possible. I
>have just 10 minutes ago had a discussion about this with a colleague
>about the same issue.
>I have no idea how long it would take to change the code and get it
>running...
>
>Volkmar
>
>On Wed, 6 Dec 2006, E A Stamatakis wrote:
>
>> Hi All,
>>
>> I have a single session fMRI experiment with 5 conditions and 3
modulators
>> each for the first 2 conditions. The last 3 conditions have no
modulators. I
>> want to use the multiple conditions option in SPM5, i.e. save a .mat
file
with
>> all the numbers. Is this possible? I have tried one modulator per
condition
>> and this works fine but I can't figure out how to define multiple
modulators
>> when using the multiple conditions option.
>>
>> Many thanks for your help,
>>
>> Emmanuel A Stamatakis PhD Tel: +44 (0)
1223 766454
>> Department of Experimental Psychology University of
Cambridge
>> Downing Street
>> Cambridge CB2 3EB
>> U.K. http://csl.psychol.cam.ac.uk
>>
>>
>
>--
>Volkmar Glauche
>-
>Department of Neurology
[log in to unmask]
>Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
>Breisacher Str. 64 Fax 49(0)761-270-5416
>79106 Freiburg http://fbi.uniklinik-freiburg.de/
>=======================================================================
==
|