Dear Mohammed,
spm_graph expects the input coordinates to be in voxel and not mm so
enter this instead:
SPM.xVol.iM(1:3,:)*[45 -61 -10 1]'
Best regards,
Guillaume.
On 31/01/18 20:34, Boureghda Mohammed wrote:
> Dear Guillaume Flandin,
>
> Thanks for the answer, it working now but it seems to me that the results returned by spm gui (condition F1), is slightly different from those, that I got using getpath (amplitude) (figure with blue line), also I tried to use spm_graph as you suggested:
>
> xG.def = 'Event-related responses';
> xG.spec.Sess = 1;
> xG.spec.u = 3;
> xG.spec.Rplot = 'fitted response and PSTH';
> [Y,y,beta,Bcov,G] = spm_graph(SPM,[45 -61 -10]',xG);
>
> It works fine, but I got a vector y (Y) with all the element equals to zeros!
>
> Mohammed.
>
> Cheers.
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|