<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear all, <div><br></div><div>whenever I try to compute the statistics for (MEG) time-frequency data, this error message comes up:</div><div><br></div><div><div><div>computing statistic over the frequency range [8.000 11.000]</div><div>computing statistic over the time range [0.300 1.100]</div></div><div><font class="Apple-style-span" color="#e61610">Error using ft_appendfreq (line 250)</font></div><div><font class="Apple-style-span" color="#e61610">the input data structures have non-unique frequency bins, concatenation across frequency is not possible</font></div><div><font class="Apple-style-span" color="#e61610"><br></font></div><div><font class="Apple-style-span" color="#e61610">Error in ft_appendfreq (line 139)</font></div><div><font class="Apple-style-span" color="#e61610"> freq = ft_appendfreq(tmpcfg, varargin{:});</font></div><div><font class="Apple-style-span" color="#e61610"><br></font></div><div><font class="Apple-style-span" color="#e61610">Error in ft_freqstatistics (line 231)</font></div><div><font class="Apple-style-span" color="#e61610"> data = ft_appendfreq(cfg, varargin{:});</font></div><div><br></div><div><div>Out of 35 participants in total, (only) three show slightly different frequency bins (starting point 2.0001 instead of 1.9998) – if I remove them from the average, the error message disappears.</div><div>If renaming the freq-structure of those three participants, the error message disappears, too.</div></div><div><br></div><div>Could anyone tell me what causes this problem or how I should handle it?<br><br>Thanks a lot in advance!<br><br>Johanna</div><div><br></div><div><br></div>PS: I'm running Matlab R2012b & fieldtrip-20130515<br><div apple-content-edited="true"><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span></div><div apple-content-edited="true"><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>%% stats</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>design=[1:10,1:10; ones(1,10),ones(1,10)*2]; </div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg = [];</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.frequency <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span> [8 11]; </div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.latency <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span> [.3 1.1]; </div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.method <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span>'montecarlo';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.statistic <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span>'indepsamplesT'; </div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.correctm <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span>'cluster';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.clustertail <span class="Apple-tab-span" style="white-space:pre"> </span>=<span class="Apple-tab-span" style="white-space:pre"> </span> 0;</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.clusteralpha <span class="Apple-tab-span" style="white-space:pre"> </span>= <span class="Apple-tab-span" style="white-space:pre"> </span>0.05;</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.clusterstatistic = 'maxsum';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.numrandomization = 500;</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.alpha <span class="Apple-tab-span" style="white-space:pre"> </span> = <span class="Apple-tab-span" style="white-space:pre"> </span>0.05;</div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.avgoverfreq = 'yes';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>% cfg.avgovertime = 'yes';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.design <span class="Apple-tab-span" style="white-space:pre"> </span> = design;</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.neighbours = neighbours; </div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.ivar <span class="Apple-tab-span" style="white-space:pre"> </span> = 2;</div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>stat = ft_freqstatistics (cfg,patUr{:}, konUr{:}); </div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg = [];</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.alpha = 0.3;</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.parameter = 'stat';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.zlim = [-3 2];</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>cfg.layout = '4D148.lay';</div><div apple-content-edited="true"><span class="Apple-tab-span" style="white-space: pre; "> </span>ft_clusterplot(cfg, stat);</div></div></div></div><div><br></div><div><br><div apple-content-edited="true"><br></div></div></body></html>