<div dir="ltr">Dear all<div><br></div><div><br></div><div>I am trying to implement a CBPT to compare data extracted from EEG recordings of a group of patients vs control.</div><div><br></div><div>In short, I have 19 channels, 10 subjects of each type and 115 measurements per channel and subject to be compared. I am trying to find significative differences in a range of measurements (say from the 10th to the 20th) at all/most/some channels, reason why I am trying to use the cluster-based approach.</div><div><br></div><div>After somehow following the instrunctions in "<a href="http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock">http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock</a>" for within-subjects experiments I think I have my data properly structured according to FT needs. However, when I run the last part of the code (ft_timelockstatistics) I get the following warning and error:</div><div><br></div><div><div><i>Warning: Using 'state' to set RAND's internal state causes RAND, RANDI, and RANDN to use legacy random number generators. This</i></div><div><i>syntax will be removed in a future release. See Updating Your Random Number Generator Syntax to use RNG to replace the old syntax. </i></div><div><i>> In rng>handleLegacyStruct at 155</i></div><div><i> In rng at 81</i></div><div><i> In utilities\private\randomseed at 73</i></div><div><i> In utilities\private\ft_preamble_randomseed at 11</i></div><div><i> In ft_preamble at 48</i></div><div><i> In ft_statistics_montecarlo at 110</i></div><div><i> In fieldtrip-20140311\private\statistics_wrapper at 308</i></div><div><i> In ft_timelockstatistics at 108</i></div><div><i> In FT_permTest at 73 </i></div><div><i>Error using rng (line 81)</i></div><div><i>S must contain generator settings captured previously using S = RNG.</i></div><div><i><br></i></div><div><i>Error in randomseed (line 73)</i></div><div><i> rng(s);</i></div><div><i><br></i></div><div><i>Error in ft_preamble_randomseed (line 11)</i></div><div><i>ftFuncRandomseed=randomseed(cfg.randomseed);</i></div><div><i>Error in ft_preamble (line 48)</i></div><div><i> evalin('caller', ['ft_preamble_' cmd]);</i></div><div><i><br></i></div><div><i>Error in ft_statistics_montecarlo (line 110)</i></div><div><i>ft_preamble randomseed</i></div><div><i><br></i></div><div><i>Error in statistics_wrapper (line 308)</i></div><div><i> [stat, cfg] = statmethod(cfg, dat, design);</i></div><div><i><br></i></div><div><i>Error in ft_timelockstatistics (line 108)</i></div><div><i>[stat, cfg] = statistics_wrapper(cfg, varargin{:});</i></div><div><i><br></i></div><div><i>Error in FT_permTest (line 73)</i></div><div><i>[stat] = ft_timelockstatistics(cfg, subjN{:}, subjE{:}); </i></div></div><div><br></div><div><br></div><div>Anyone knows why?</div><div><br></div><div><br></div><div>Thanks in advance</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8000001907349px">Jose Antonio Urigüen<br><br>PostDoc at Deustotech-LIFE (eVIDA Research Group)<br><a href="http://evida.deusto.es/" style="color:rgb(17,85,204)" target="_blank">http://evida.deusto.es/</a></div><div style="color:rgb(136,136,136);font-size:12.8000001907349px"><br>University of Deusto<br>Facultad de Ingeniería, 4ª Planta<br>Avda/Universidades 24. 48007 Bilbao. Spain<br><span style="font-size:12.8000001907349px">Mov.- </span><a href="tel:%2B34%20619%2096%2072%2023" value="+34619967223" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">+34 656 711 643</a></div></div></div>
</div></div>