[FieldTrip] ft_sourceinterpolate after grandaverage, interpn error

Martin Winkels m_wink10 at uni-muenster.de
Sat Jun 23 16:05:37 CEST 2012


I have the same Problem. I can plot my LCMV-Beamformer results on an
anatomy. And I can plot the results of the normalize script. But I can't
plot the GrandAVG or the Stats results on that anatomy. The interpolate
function doesn' work. Without anatomy it works just fine.

Any hint?

Thanks, Martin

On Sat, Jun 23, 2012 at 8:19 AM, jan-mathijs schoffelen <
jan.schoffelen at donders.ru.nl> wrote:

> Hi Cornelius,
>
> Could it be that the parameter 'avg.avg.pow' does not work?
>
> Best,
>
> JM
>
> On Jun 22, 2012, at 2:38 PM, cornelius abel wrote:
>
> Dear Fieldtrip list,
>
> i successfully beamformed some steady state activity and the sourceplots
> per subject are looking very nice.
> As a next step I tried to calculate a grand average using
> ft_sourcegrandaverage:
>
> cfg=[];
> cfg.keepindividual='no';
> cfg.parameter='avg.pow';
> GACont= ft_sourcegrandaverage(cfg, AllsourceCont{:});
>
> giving me the following structure:
>
> GACont =
> pos: [3570x3 double]
> dim: [17 14 15]
> avg: [1x1 struct]
> var: [1x1 struct]
> dimord: 'voxel'
> inside: [1846x1 double]
> outside: [1724x1 double]
> df: [3570x1 double]
> cfg: [1x1 struct]
>
> but interpolating this onto an anatomy always gives me an error:
>
> cfg = [];
> cfg.downsample= 2;
> cfg.parameter = 'avg.avg.pow';
> sourceDiffInt= ft_sourceinterpolate(cfg, GACont , mri);
>
> /??? Error using ==> interpn at 155/
> ///Wrong number of input arguments or some dimension of V is less than 2./
> ///Error in ==> ft_sourceinterpolate>my_interpn at 464/
> ///av(sel) = interpn(fv, ax(sel), ay(sel), az(sel), interpmethod);/
> ///Error in ==> ft_sourceinterpolate at 368/
> ///av( sel) = my_interpn(fv, ax(sel), ay(sel), az(sel), cfg.interpmethod,
> cfg.feedback);/
>
> however interpolating a single subject source data works just fine...
>
> cfg = [];
> cfg.downsample= 2;
> cfg.parameter = 'avg.pow';
> sourceDiffInt= ft_sourceinterpolate(cfg, AllsourceCont{1} , mri);
>
>
> What am i doing wrong here, any ideas?
>
>
>
> Greetings, Cornelius
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
> Jan-Mathijs Schoffelen, MD PhD
>
> Donders Institute for Brain, Cognition and Behaviour,
> Centre for Cognitive Neuroimaging,
> Radboud University Nijmegen, The Netherlands
>
> Max Planck Institute for Psycholinguistics,
> Nijmegen, The Netherlands
>
> J.Schoffelen at donders.ru.nl
> Telephone: +31-24-3614793
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120623/8a5336f7/attachment-0002.html>


More information about the fieldtrip mailing list