Print

Print


Marco Tettamanti wrote:

>
> %----------------------------------------
>
> parametrics(1) = struct( ...
>  'name',       {{'behav','behav','behav','behav'}}, ...
>  'exp_type',   {{'linear','linear','linear','linear'}}, ...
>  'trials',     {{[1 2 3 4],[1 2 3 4],[1 2 3 4],[1 2 3 4]}}, ...
>  'parameters', {{[1396 1712 1384 2097],[7 7 7 8],[2983 2008 1468
1547],[7
> 8 8 7]}});
>
> parametrics(2) = parametrics(1);
> parametrics(2).parameters = {[1551 1629 2002 1550],[8 8 8 7],[1915
1976
> 1314 1522],[7 8 7 7]};

I don't understand that much what SPM does with parametric modulation
but from the code (and from the graphic GUI) it seems that you just
choose
one parametric name and type which you apply to the trial you want
(I don't know why ?)
So you can't apply a different parametric modulation (one linear and on
exponential)
to different trials

so the definition of the parametrics structure should be something like

parametrics = struct( ...
 'name',       {'behav'}, ...
 'exp_type',   {'linear'}, ...
 'trials',     {[1 2 3 4]}, ...
 'parameters', {{[1396 1712 1384 2097],[7 7 7 8],[2983 2008 1468
1547],[7 8 8 7]}});

Anyway it does not give any error message

I hope it's help



Romain Valabregue