[FieldTrip] Spatio-temporal cluster-based permutation analysis on EEG sources
Emma Holmes
eh776 at york.ac.uk
Mon Nov 3 14:01:32 CET 2014
Hi Stan,
Thanks for the suggestion.
When I try that, I get the following error
??? Error using ==> ft_datatype_source at 173
unsupported version "upcoming" for source datatype
Error in ==> ft_sourcegrandaverage at 82
varargin{i} = ft_datatype_source(varargin{i}, 'version', 'upcoming');
I am unsure why this occurs.
My data is now structured in the following way:
data = <20x1 cell> % one cell array for each participant, n=20
data{i}.pos = [902629x3 double] % x,y,z positions
data{i}.dim = [91 109 91]
data{i}.time = [1 x 11 double] % vector of time points
data{i}.avg.pow = [902629 x 11 double] % source estimates
The following is the method I use:
cfg = [];
cfg.keepindividual = 'yes';
cfg.parameter = 'pow';
grandavgA = ft_sourcegrandaverage(cfg, data{:});
Best,
Emma
On 31 October 2014 16:02, Stan van Pelt<s.vanpelt at fcdonders.ru.nl>
<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>
wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141103/9e0c9492/attachment-0002.html>
More information about the fieldtrip
mailing list