load allsubjects

cfg = [];
cfg.method = 'montecarlo';
cfg.statistic = 'depsamplesT';
% cfg.parameter = 'cohspctrm';   <==== it will always use powspctrm,  regardless of this parameter
cfg.numrandomization = 500;
cfg.design = [1 1 2 2 3 3 4 4 5 5 6 6; 1 2 1 2 1 2 1 2 1 2 1 2];
cfg.ivar = 2;
cfg.uvar = 1;
cfg.correctm = 'yes';
for j = 1:length(data1257Vis.label);
   cfg.neighbours{j}.label = data1257Vis.label{j};
   cfg.neighbours{j}.neighblabel = {};
end

stat = freqstatistics(cfg, data1257XM, data1257Vis, data1299XM, data1299Vis, data349XM, data349Vis, data449XM, data449Vis, data732XM,data732Vis, data868XM, data868Vis);

