<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
my line 79 in ft_freqstatistics (i.e. the one that is reported in your error stack) reads: <span class="pl-smi" style="box-sizing: border-box; color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; white-space: pre;">ft_preamble</span><span style="caret-color: rgb(3, 47, 98); color: rgb(3, 47, 98); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; white-space: pre; background-color: rgb(255, 255, 255);" class="">
 loadvar varargin </span>not ft_preamble help.
<div class="">Have you by accident edited this file? Please fix it, and try to run it again.</div>
<div class=""><br class="">
</div>
<div class="">JM</div>
<div class=""><br class="">
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 11 Sep 2020, at 16:51, Tertikas, Georgios <<a href="mailto:georgios.tertikas@kcl.ac.uk" class="">georgios.tertikas@kcl.ac.uk</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Hi Jan-Mathijs,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Thank you once again for your fast response.<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">I have actually called it as such</span><span lang="EN-US" style="font-family: Calibri, sans-serif;" class=""><span class="Apple-converted-space"> </span> (</span>[stat]
 = ft_freqstatistics(cfg,CA_11_TFR{:} ,CA_12_TFR{:})<o:p class=""></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">But then I receive this error message:<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Error using nargin<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">You can only call nargin/nargout from within a MATLAB function.<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Error in ft_preamble_help (line 26)<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">if nargin==0<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Error in ft_preamble (line 54)<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">  evalin('caller', ['ft_preamble_' cmd]);<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Error in ft_freqstatistics (line 79)<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">ft_preamble help<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Error in Grand_average_Cluster_based_electrode_selection (line 268)<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">[stat] = ft_freqstatistics(cfg,CA_11_TFR{:} ,CA_12_TFR{:})<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">From my understanding this might be related to a mismatch between the number of inputs and the number of outputs. After reading through the specifics of ft_freqstatistics
 it seems I need to have a single variable or is that not the case?<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thank you once again for all your help,<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 7.5pt; font-family: Courier;" class="">
<span lang="EN-US" style="font-size: 11pt; font-family: Calibri, sans-serif;" class="">George<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class=""><o:p class=""> </o:p></span></div>
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0cm 0cm;" class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<b class=""><span style="font-size: 12pt;" class="">Από:<span class="Apple-converted-space"> </span></span></b><span style="font-size: 12pt;" class="">fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip-bounces@science.ru.nl</a>>
 για λογαριασμό του "Schoffelen, J.M. (Jan Mathijs)" <<a href="mailto:jan.schoffelen@donders.ru.nl" style="color: blue; text-decoration: underline;" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
<b class="">Απάντηση σε:<span class="Apple-converted-space"> </span></b>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">Ημερομηνία:<span class="Apple-converted-space"> </span></b>Παρασκευή, 11 Σεπτεμβρίου 2020 - 15:25<br class="">
<b class="">Προς:<span class="Apple-converted-space"> </span></b>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">Θέμα:<span class="Apple-converted-space"> </span></b>Re: [FieldTrip] Technical issue with cluster based selection of electrodes (ft_freqstatistics)<o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
That depends on with what syntax you called ft_freqstatistics: if your data argument is an 1XN cell-array of data structures you need to call it like ft_freqstatistics(cfg, data1{:}, data2{:}), i.e. with the explicit bracket expansion.<o:p class=""></o:p></div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class="" type="cite">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
On 11 Sep 2020, at 15:01, Tertikas, Georgios <<a href="mailto:georgios.tertikas@kcl.ac.uk" style="color: blue; text-decoration: underline;" class="">georgios.tertikas@kcl.ac.uk</a>> wrote:<o:p class=""></o:p></div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Hi Jan-Mathijs,</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Thank you very much for your fast reply and your input. I apologize for the format of the data, I will keep in mind your advice for the future.</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Unfortunately I tried to put non-grand averaged input ( cell {12,1} containing one structure of TFR data from each participant) and the input I got was:</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">Error using ft_checkdata (line 529)</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">This function requires freq data as input, see ft_datatype_freq.</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">Error in ft_freqstatistics (line 97)</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">  varargin{i} = ft_checkdata(varargin{i}, 'datatype', 'freq', 'feedback', 'no');</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Would you happen to know an alternative?</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Thank you once again,</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">George</span><o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(181, 196, 223); padding: 3pt 0cm 0cm;" class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<b class=""><span style="font-size: 12pt;" class="">Από:<span class="apple-converted-space"> </span></span></b><span style="font-size: 12pt;" class="">fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip-bounces@science.ru.nl</a>>
 για λογαριασμό του "Schoffelen, J.M. (Jan Mathijs)" <<a href="mailto:jan.schoffelen@donders.ru.nl" style="color: blue; text-decoration: underline;" class="">jan.schoffelen@donders.ru.nl</a>><br class="">
<b class="">Απάντηση σε:<span class="apple-converted-space"> </span></b>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">Ημερομηνία:<span class="apple-converted-space"> </span></b>Παρασκευή, 11 Σεπτεμβρίου 2020 - 13:41<br class="">
<b class="">Προς:<span class="apple-converted-space"> </span></b>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">Θέμα:<span class="apple-converted-space"> </span></b>Re: [FieldTrip] Technical issue with cluster based selection of electrodes (ft_freqstatistics)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Hi Georgios,<span class="apple-converted-space"> </span><o:p class=""></o:p></div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
The issue you are facing, is that you input grandaveraged data into ft_freqstatistics, which does not contain the individual subject estimates anymore. So indeed, as you already suspected yourself, there’s something wrong with the input into the function. Once
 the individual subject dimension is gone, it is impossible to compute a group-level T-statistic, let alone a corresponding critical value for clustering.<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Indeed, once I managed to download the wetransfer files and load in one of the files, which nearly crashed my matlab because of its uncompressed size, it looks as if you are using the wrong variable as input to the statistics function.<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Just for future reference, please only save (and upload) the variables that are needed to reproduce your problem, rather than your full matlab workspace).<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Best wishes,<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Jan-Mathijs<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<br class="">
<br class="">
<br class="">
<o:p class=""></o:p></div>
</div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class="" type="cite">
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
On 11 Sep 2020, at 11:56, Tertikas, Georgios <<a href="mailto:georgios.tertikas@kcl.ac.uk" style="color: blue; text-decoration: underline;" class="">georgios.tertikas@kcl.ac.uk</a>> wrote:<o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
<div class="">
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Hi List,</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">I am currently analyzing EEG data looking at alpha band frequencies.</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">I am analyzing TFR sequences from 12 participants for left and right stimuli (2 conditions) and I want to isolate the electrodes that show differential activation between the two conditions. As such I have been trying to perform
 cluster based selection of electrodes but I receive the following error message when using ft_freqstatistics:</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="color: red;" class="">Error using ft_statistics_montecarlo (line 242)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="color: red;" class="">could not determine the parametric critical value for clustering</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="color: red;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="color: red;" class="">Error in ft_freqstatistics (line 193)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="color: red;" class="">  [stat, cfg] = statmethod(cfg, dat, design);</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Could someone aid me in that? I am also not entirely sure whether grand averaged data will be useful in my case but that is what is suggested in the official site.</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">My code up to this point is the following:</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class="">%% compute the cluster based statistics</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg = [];</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.channel          = {<span style="color: rgb(178, 69, 243);" class="">'Fp1'</span>;<span style="color: rgb(178, 69, 243);" class="">'Fz'</span>;<span style="color: rgb(178, 69, 243);" class="">'F3'</span>;<span style="color: rgb(178, 69, 243);" class="">'FT9'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC5'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC1'</span>;<span style="color: rgb(178, 69, 243);" class="">'C3'</span>;<span style="color: rgb(178, 69, 243);" class="">'T7'</span>;<span style="color: rgb(178, 69, 243);" class="">'TP9'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP5'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP1'</span>;<span style="color: rgb(178, 69, 243);" class="">'Pz'</span>;<span style="color: rgb(178, 69, 243);" class="">'P3'</span>;<span style="color: rgb(178, 69, 243);" class="">'P7'</span>;<span style="color: rgb(178, 69, 243);" class="">'O1'</span>;<span style="color: rgb(178, 69, 243);" class="">'Oz'</span>;<span style="color: rgb(178, 69, 243);" class="">'O2'</span>;<span style="color: rgb(178, 69, 243);" class="">'P4'</span>;<span style="color: rgb(178, 69, 243);" class="">'P8'</span>;<span style="color: rgb(178, 69, 243);" class="">'TP10'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP6'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP2'</span>;<span style="color: rgb(178, 69, 243);" class="">'C4'</span>;<span style="color: rgb(178, 69, 243);" class="">'T8'</span>;<span style="color: rgb(178, 69, 243);" class="">'FT10'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC6'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC2'</span>;<span style="color: rgb(178, 69, 243);" class="">'F4'</span>;<span style="color: rgb(178, 69, 243);" class="">'F8'</span>;<span style="color: rgb(178, 69, 243);" class="">'AFz'</span>;<span style="color: rgb(178, 69, 243);" class="">'F1'</span>;<span style="color: rgb(178, 69, 243);" class="">'F5'</span>;<span style="color: rgb(178, 69, 243);" class="">'FT7'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC3'</span>;<span style="color: rgb(178, 69, 243);" class="">'C1'</span>;<span style="color: rgb(178, 69, 243);" class="">'C5'</span>;<span style="color: rgb(178, 69, 243);" class="">'TP7'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP3'</span>;<span style="color: rgb(178, 69, 243);" class="">'P1'</span>;<span style="color: rgb(178, 69, 243);" class="">'P5'</span>;<span style="color: rgb(178, 69, 243);" class="">'PO7'</span>;<span style="color: rgb(178, 69, 243);" class="">'PO3'</span>;<span style="color: rgb(178, 69, 243);" class="">'POz'</span>;<span style="color: rgb(178, 69, 243);" class="">'PO4'</span>;<span style="color: rgb(178, 69, 243);" class="">'PO8'</span>;<span style="color: rgb(178, 69, 243);" class="">'P6'</span>;<span style="color: rgb(178, 69, 243);" class="">'P2'</span>;<span style="color: rgb(178, 69, 243);" class="">'CPz'</span>;<span style="color: rgb(178, 69, 243);" class="">'CP4'</span>;<span style="color: rgb(178, 69, 243);" class="">'TP8'</span>;<span style="color: rgb(178, 69, 243);" class="">'C6'</span>;<span style="color: rgb(178, 69, 243);" class="">'C2'</span>;<span style="color: rgb(178, 69, 243);" class="">'FC4'</span>;<span style="color: rgb(178, 69, 243);" class="">'FT8'</span>;<span style="color: rgb(178, 69, 243);" class="">'F6'</span>;<span style="color: rgb(178, 69, 243);" class="">'AF4'</span>;<span style="color: rgb(178, 69, 243);" class="">'F2'</span>;<span style="color: rgb(178, 69, 243);" class="">'FCz'</span>};</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.latency          = [0.8 1.15];</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.frequency        =<span class="apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'all'</span>;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.method           =<span class="apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'montecarlo'</span>;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.statistic        =<span class="apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'ft_statfun_depsamplesT'</span>;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.correctm         =<span class="apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'cluster'</span>;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clusteralpha     = 0.05;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clusterstatistic =<span class="apple-converted-space"> </span><span style="color: rgb(178, 69, 243);" class="">'maxsum'</span>;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.minnbchan        = 2;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.tail             = 0;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.clustertail      = 0;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.alpha            = 0.025;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.numrandomization = 1000;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class="">% specifies with which sensors other sensors can form clusters</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(74, 135, 78);" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.neighbours       = neighbours</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">subj = 12;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design = zeros(2,2*subj);</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">for</span><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Courier;" class=""> </span></span><span style="font-size: 7.5pt; font-family: Courier;" class="">i
 = 1:subj</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">  design(1,i) = i;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">end</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">for</span><span class="apple-converted-space"><span style="font-size: 7.5pt; font-family: Courier;" class=""> </span></span><span style="font-size: 7.5pt; font-family: Courier;" class="">i
 = 1:subj</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">  design(1,subj+i) = i;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier; color: rgb(4, 51, 255);" class="">end</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design(2,1:subj)        = 1;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">design(2,subj+1:2*subj) = 2;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.design   = design;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.uvar     = 1;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">cfg.ivar     = 2;</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class="">[stat] = ft_freqstatistics(cfg,grand_averaged_11_TFR ,grand_averaged_12_TFR)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 7.5pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 9pt; font-family: Courier;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">And the output that I receive is:</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">cfg =<span class="apple-converted-space"> </span></span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">  struct with fields:</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">             channel: {58×1 cell}</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">             latency: [0.8000 1.1500]</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">           frequency: 'all'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">              method: 'montecarlo'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">           statistic: 'ft_statfun_depsamplesT'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">            correctm: 'cluster'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">        clusteralpha: 0.0500</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">    clusterstatistic: 'maxsum'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">           minnbchan: 2</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">                tail: 0</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">         clustertail: 0</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">               alpha: 0.0250</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">    numrandomization: 1000</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">          neighbours: [1×66 struct]</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the call to "ft_selectdata" took 1 seconds and required the additional allocation of an estimated 22 MB</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using specified neighbours for the channels</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">there are on average 6.8 neighbours per channel</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the call to "ft_prepare_neighbours" took 0 seconds and required the additional allocation of an estimated 5 MB</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using "ft_statistics_montecarlo" for the statistical testing</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using "ft_statfun_depsamplesT" for the single-sample statistics</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">constructing randomized design</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">total number of measurements     = 2</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">total number of variables        = 24</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of independent variables  = 1</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of unit variables         = 1</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of within-cell variables  = 0</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of control variables      = 0</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">using a permutation resampling approach</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">repeated measurement in variable 1 over 1 levels</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">number of repeated measurements in each level is 2</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">the maximum number of unique permutations is 2</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Warning: cfg.numrandomization is larger than the maximum number of unique permutations, better use 'all'</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">generated 1000 random permutations</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">computing a parametric threshold for clustering</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error using ft_statfun_depsamplesT (line 83)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">The data must contain at least two units of observation (trials or subjects).</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error using ft_statistics_montecarlo (line 242)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">could not determine the parametric critical value for clustering</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">Error in ft_freqstatistics (line 193)</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" style="font-size: 9pt;" class="">  [stat, cfg] = statmethod(cfg, dat, design);</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">This is a wetransfer link with my data and with a mat file that I have created for the specific electrode array that I have (acticap_64).</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwe.tl%2Ft-Jqn4HBFNzf&data=01%7C01%7Cgeorgios.tertikas%40kcl.ac.uk%7C97c606cc538d45f31baa08d8565e8ed0%7C8370cf1416f34c16b83c724071654356%7C0&sdata=IDuubeok32fvn%2BIQWXTQQC1FXkTamuddQLK7lWYbE5w%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">https://we.tl/t-Jqn4HBFNzf</a></span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class="">Thank you very much in advance for your help.</span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span lang="EN-US" class=""> </span><o:p class=""></o:p></div>
</div>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 10.5pt; font-family: Helvetica;" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
</span><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=01%7C01%7Cgeorgios.tertikas%40kcl.ac.uk%7C97c606cc538d45f31baa08d8565e8ed0%7C8370cf1416f34c16b83c724071654356%7C0&sdata=CzQogLCYxquZbqE0jamUY%2FyXvrxo%2B6X49OYwJsTEg%2Bw%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a><span style="font-size: 10.5pt; font-family: Helvetica;" class=""><br class="">
</span><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=01%7C01%7Cgeorgios.tertikas%40kcl.ac.uk%7C97c606cc538d45f31baa08d8565e8ed0%7C8370cf1416f34c16b83c724071654356%7C0&sdata=yVbT3g9GpsvMfPBEGS6%2BrwtTKqvrmu2ag7wxAbzOCY4%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica;" class="">https://doi.org/10.1371/journal.pcbi.1002202</span></a><o:p class=""></o:p></div>
</div>
</div>
</blockquote>
</div>
<div class="">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
 <o:p class=""></o:p></div>
</div>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 10.5pt; font-family: Helvetica;" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
</span><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=01%7C01%7Cgeorgios.tertikas%40kcl.ac.uk%7C97c606cc538d45f31baa08d8565e8ed0%7C8370cf1416f34c16b83c724071654356%7C0&sdata=CzQogLCYxquZbqE0jamUY%2FyXvrxo%2B6X49OYwJsTEg%2Bw%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a><span style="font-size: 10.5pt; font-family: Helvetica;" class=""><br class="">
</span><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=01%7C01%7Cgeorgios.tertikas%40kcl.ac.uk%7C97c606cc538d45f31baa08d8565e8ed0%7C8370cf1416f34c16b83c724071654356%7C0&sdata=yVbT3g9GpsvMfPBEGS6%2BrwtTKqvrmu2ag7wxAbzOCY4%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica;" class="">https://doi.org/10.1371/journal.pcbi.1002202</span></a><o:p class=""></o:p></div>
</div>
</blockquote>
</div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
</div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>