<div dir="ltr"><div><div>Hi Stan,<br><br></div>Thanks for the suggestion.<br><br></div>When I try that, I get the following error<br><div><div><div><br><span style="color:rgb(255,0,0)">   ??? Error using ==> ft_datatype_source at 173<br>   unsupported version "upcoming" for source datatype<br><br>   Error in ==> ft_sourcegrandaverage at 82<br>     varargin{i} = ft_datatype_source(varargin{i}, 'version', 'upcoming');</span><br><br></div>I am unsure why this occurs.<br></div><div><br>My data is now structured in the following way:<br>data = <20x1 cell> % one cell array for each participant, n=20<br>data{i}.pos = [902629x3  double] % x,y,z positions<br>
data{i}.dim = [91 109 91]<br>
data{i}.time = [1 x 11 double] % vector of time points<br>
data{i}.avg.pow = [902629 x 11 double] % source estimates<br><br>The following is the method I use:<br>cfg = [];<br>cfg.keepindividual = 'yes';<br>cfg.parameter = 'pow';<br>grandavgA = ft_sourcegrandaverage(cfg, data{:});<br><br></div><div>Best,<br>Emma<br></div><div><div><br><br>On 31 October 2014 16:02, Stan van Pelt<a href="mailto:fieldtrip%40science.ru.nl?Subject=Re%3A%20%5BFieldTrip%5D%20Spatio-temporal%20cluster-based%20permutation%20analysis%0A%09on%09EEG%20sources&In-Reply-To=%3C075001cff75a%245487d8a0%24fd9789e0%24%40vanpelt%40fcdonders.ru.nl%3E" title="[FieldTrip] Spatio-temporal cluster-based permutation analysis     on      EEG sources"><s.vanpelt@fcdonders.ru.nl>
       </a> wrote:<br><pre>> Hi Emma,



> Try using data{i}.avg.pow instead of data{i}.pow.avg



> (or use cfg.funparameter    = 'pow.avg' instead of cfg.funparameter    = 
> 'avg.pow')



> Best,

> Stan</pre><br></div></div></div></div>