[FieldTrip] missing anatomy in source plot of ft_sourcegrandaverage

Joram van Driel joramvandriel at gmail.com
Fri Jan 31 12:44:25 CET 2014


Hi all,

I'm trying to plot the grand average of a source analysis. However no
matter what I try, the result of ft_sourcegrandaverage keeps giving me only
the functional data, no anatomy.

My cfg for ft_sourceplot is:

cfg = [];
cfg.method        = 'ortho';
cfg.interactive   = 'no';
cfg.funparameter  = 'avg.pow';
cfg.maskparameter = cfg.funparameter;
cfg.funcolorlim   = [0 0.2];
cfg.opacitylim    = [0 0.2];
cfg.opacitymap    = 'rampup';

ft_sourceplot(cfg,grandavg{1})

I thus created my own grandaverage, like this (where sourceDiffAll{:,:} is
a subject-by-condition cell structure):

temp = zeros([length(nsubjects) size(sourceDiffAll{1,1}.avg.pow)]);
for s=1:length(nsubjects)
    temp(s,:,:,:) = sourceDiffAll{s,2}.avg.pow -
sourceDiffAll{s,1}.avg.pow; % create condition contrast
end
customavg = sourceDiffAll{1,1}; % just copy one subject one condition
customavg.avg.pow = squeeze(mean(temp,1)); % and replace power with the
grand average power condition-contrast

Now using ft_sourceplot on customavg works just fine.
Any idea of what's going wrong with ft_sourceplot on ft_sourcegrandaverage?
Thanks!

- Joram


-- 
Joram van Driel, MSc.
PhD student @ University of Amsterdam
Brain & Cognition @ Department of Psychology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140131/a769d2b3/attachment-0001.html>


More information about the fieldtrip mailing list