<p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;"><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;"><br></p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Thank you Jan Mathijs.</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Finally I see what's wrong with my code.</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Let me look into my data again and I think I can fix it.</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Thank you so much and have a nice day:)</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;"><br></p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Best,</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;">Jaewon</p><p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;"><br></p><div style="margin-top:30px;margin-left:0.8em;font-size:12px;font-family:돋움,arial;color:#0066CC;font-weight: bold;">--------- 원본 메일 ---------</div><blockquote style="font-size:12px;border-left-style:solid;border-left-width:2px;margin-bottom:0pt;margin-left:0.8em;margin-right:0pt;margin-top:0pt;padding-left:1em;"><div style="font-family:arial,돋움;line-height:1.5"><b>보낸사람</b> : "Schoffelen, J.M. (Jan Mathijs)" <fieldtrip@science.ru.nl><br><b>받는사람</b> : FieldTrip discussion list <fieldtrip@science.ru.nl><br><b>참조</b> : "Schoffelen, J.M. (Jan Mathijs)" <janmathijs.schoffelen@donders.ru.nl><br><b>받은날짜</b> : 2022-06-27 (월) 02:33:19<br><b>제목</b> : Re: [FieldTrip] ft_timelockstatistics design matrix<br><!-- original content --><div style="margin-top:5px;">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi Jaewon,
<div class=""><br class="">
</div>
<div class="">The error that you posted earlier suggests indeed that your data does not match the design matrix. </div>
<div class="">If HH_timelock.trial (etc.) are not of size nSubjsxNchanxNtime FieldTrip does not have a clue of how to link the data to the design. It seems as if: </div>
<div class=""><br class="">
</div>
<div class="">1) HH_timelock etc each only have a single observation, while it is expected that there are multiple subjects represented there, i.e. the first dimension in the HH_timelock.trial field should be nSubjs, and not 1</div>
<div class=""><br class="">
</div>
<div class="">and</div>
<div class=""> </div>
<div class="">2) The nSubjs variable does not match this. You haven’t specified how many subjects you have (and in fact the exact number is irrelevant), but the design matrix in your case should be a 2x (nSubjsx4) matrix. </div>
<div class=""><br class="">
</div>
<div class="">Good luck</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 25 Jun 2022, at 11:17, 오재원 via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<p style="border:0; padding:0; margin:0; font-family:'굴림'; font-size:10pt; cursor: text;" class="">
</p>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Hello,</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
I have just check the shape of the struct but it does not look like what you sent to me..</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
It looks like this:</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASYAAACtCAYAAAAdxNJ1AAAgAEl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TFLgnCvmNPiBH4/X6I9GdvYfH4hpnpCBOP7219dkEQ3NkbunJeP6Gwn9Buz0MQhB1hT3hMgiA8WYhhEgSh5hDDJAhCzSGGSRCEmkMMkyAINYcYJkEQag4xTIIg1BximARBqDnEMAmCUHOIYRIEoeYQwyQIQs0hhkkQhJpDDJMgCDWHGCZBEGoOMUyCINQcYpgEQag5/j9m70EV2w5ECgAAAABJRU5ErkJggg==" alt="" class=""></div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
I think I have to look into how to form the correct data struct first.</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Thank you for your help and have a nice day :)</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Best,</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
Jaewon</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="border: 0px; padding: 0px; margin: 0px; font-family: 굴림; font-size: 10pt; cursor: text;" class="">
<br class="">
</div>
<div style="margin-top:30px;margin-left:0.8em;font-size:12px;font-family:돋움,arial;color:#0066CC;font-weight: bold;" class="">
--------- 원본 메일 ---------</div>
<blockquote style="font-size:12px;border-left-style:solid;border-left-width:2px;margin-bottom:0pt;margin-left:0.8em;margin-right:0pt;margin-top:0pt;padding-left:1em;" class="">
<div style="font-family:arial,돋움;line-height:1.5" class=""><b class="">보낸사람</b> : "Elif Tülay via fieldtrip" <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">받는사람</b> : FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">참조</b> : "Elif Tülay" <<a href="mailto:e.eliftulay@gmail.com" class="">e.eliftulay@gmail.com</a>><br class="">
<b class="">받은날짜</b> : 2022-06-25 (토) 04:13:06<br class="">
<b class="">제목</b> : Re: [FieldTrip] ft_timelockstatistics design matrix<br class="">
<!-- original content -->
<div style="margin-top:5px;" class="">
<div dir="ltr" class="">
<div class="">Dear Jaewon, <br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I just want to ask in order to be sure. For example <span style="font-size:13.3333px" class="">
HH_timelock variable contains all the participants like the attached format. Each struct contains FieldTrip output fields for each participants.Then you can use
<span style="font-size:13.3333px" class="">HH_timelock{:}. If your dataset is not in this format, maybe you can try this way once more.</span>
</span></div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jun 24, 2022 at 1:27 PM "오재원" via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p style="border:0px none;padding:0px;margin:0px;font-family:"\00ad74\00b9bc";font-size:10pt" class="">
</p>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
Dear Julian,</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
Thank you for the response. Yes, I have tried adding {:} after each structure but Matlab said {:} cannot be attached to 'structure'.</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
So I tried altering the structures to cell arrays and then adding {:} to the cell arrays as the following codes:</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">%% permutation test statistical analysis</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">HH_timelock = struct2cell(HH_timelock);</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">HN_timelock = struct2cell(HN_timelock);</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">LH_timelock = struct2cell(LH_timelock);</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">LN_timelock = struct2cell(LN_timelock);</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class=""><br class="">
</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">[stat] = ft_timelockstatistics(cfg, HH_timelock{:}, HN_timelock{:}, LH_timelock{:}, LN_timelock{:});</span></div>
</blockquote>
</blockquote>
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><br class="">
</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
But it did not work.</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">Error: matlab.internal.doc.updateConnectorDocroot (Line 3)</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class=""> options = weboptions('RequestMethod','post', ...</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<p style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class=""> </span></p>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">Warning: Your path is set up incorrectly. You probably used addpath(genpath('path_to_fieldtrip')), this can lead to</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">unexpected behavior. See</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class=""><a href="https://urldefense.com/v3/__http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path__;!!HJOPV4FYYWzcc1jazlU!-5oxZvt5bELdM4fGuG08Paw8YCINrdUPywabMYh62UEhuzGtr_HDv9f9cHOCKsi5AJamP-h2BFXvG73kO8Z1VMZcyTEq5l2cshK8iw$" target="_blank" class="">http://www.fieldtriptoolbox.org/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path</a> </span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<p style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class=""></span></p>
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">Error: ft_checkdata (538번 라인)</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">This function requires timelock data as input, see ft_datatype_timelock.</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class=""><br class="">
</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class="">Error: ft_timelockstatistics (87번 라인)</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border: 0px none; padding: 0px; margin: 0px;" class=""><span style="font-size:13.3333px" class=""> varargin{i} = ft_checkdata(varargin{i}, 'datatype', 'timelock', 'feedback', 'no');</span></div>
</blockquote>
</blockquote>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
I am wondering what I can do more at this point.</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
Best,</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
<br class="">
</div>
<div style="font-family: 굴림; font-size: 10pt; border: 0px none; padding: 0px; margin: 0px;" class="">
Jaewon</div>
<div style="font-family:돋움,arial;font-size:12px;margin-top:30px;margin-left:0.8em;color:rgb(0,102,204);font-weight:bold" class="">
--------- 원본 메일 ---------</div>
<blockquote style="font-family:굴림;font-size:12px;border-left-style:solid;border-left-width:2px;margin:0pt 0pt 0pt 0.8em;padding-left:1em" class="">
<div style="font-family:arial,돋움;line-height:1.5" class=""><b class="">보낸사람</b> : Julian Keil via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">받는사람</b> : FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">참조</b> : Julian Keil <<a href="mailto:julian.keil@gmail.com" target="_blank" class="">julian.keil@gmail.com</a>><br class="">
<b class="">받은날짜</b> : 2022-06-24 (금) 17:27:30<br class="">
<b class="">제목</b> : Re: [FieldTrip] ft_timelockstatistics design matrix<br class="">
<div style="margin-top:5px" class="">Dear Jaewon,
<div class=""><br class="">
</div>
<div class="">are "<font size="2" class="">HH_timelock, HN_timelock, LH_timelock, LN_timelock“ your data structures containing the single participants?</font></div>
<div class=""><font size="2" class="">Have you tried adding {:} after the structures (e.g., </font><span style="font-size:13.3333px" class="">HH_timelock</span><span style="font-size:small" class="">{:}</span><span style="font-size:13.3333px" class="">, HN_timelock</span><span style="font-size:small" class="">{:}</span><span style="font-size:13.3333px" class="">,
LH_timelock</span><span style="font-size:small" class="">{:}</span><span style="font-size:13.3333px" class="">, LN_timelock</span><span style="font-size:small" class="">{:})?</span></div>
<div class=""><span style="font-size:small" class="">Are the same numbers of participants in all structures?</span></div>
<div class=""><span style="font-size:small" class=""><br class="">
</span></div>
<div class=""><span style="font-size:small" class="">Good luck,</span></div>
<div class=""><span style="font-size:small" class=""><br class="">
</span></div>
<div class=""><span style="font-size:small" class="">Julian</span></div>
<div class=""><span style="font-size:small" class=""><br class="">
</span></div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">Am 24.06.2022 um 09:33 schrieb 오재원 via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank" class="">fieldtrip@science.ru.nl</a>>:</div>
<br class="">
<div class="">
<p style="border:0px none;padding:0px;margin:0px;font-family:"\00ad74\00b9bc";font-size:10pt" class="">
</p>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
<br class="">
</div>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
Hello,</div>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
<br class="">
</div>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
I was trying cluster-based permutation using ft_timlockstatistics, but I got an error regarding design matrix.</div>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
The code I used is as following:</div>
<div style="font-family:굴림;font-size:10pt;border:0px none;padding:0px;margin:0px" class="">
<br class="">
</div>
<p style="font-family:굴림;font-size:10pt;line-height:1.5;margin-bottom:0px;margin-top:0px" class="">
</p>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">%% Permutation test</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">[ftver, ftpath] = ft_version;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cd(fullfile(ftpath, 'template', 'electrode'));</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">elec = ft_read_sens('standard_1020.elc');</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">% there are some of which the orientation cannot be determined (T3, T4, T5, T6)</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">ft_plot_sens(elec, 'label', 'yes', 'elecshape', 'disc', 'elecsize', 10, 'facecolor', [0.8 0.8 1.0])</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">% give it a stronger 3D appearance</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">camlight headlight</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg = [];</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.elec = elec;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.channel = {'Fp1', 'Fpz', 'Fp2', 'F7', 'F3', 'Fz', 'F4', 'F8', 'T7', 'C3', 'Cz', 'C4', 'T8', 'P7', 'P3', 'Pz', 'P4', 'P8', 'O1', 'Oz', 'O2'};</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.method = 'distance';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.feedback = 'yes';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.neighbourdist = 100;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">neighbours = ft_prepare_neighbours(cfg);</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">design = [1:nSubjs 1:nSubjs 1:nSubjs 1:nSubjs; ones(1,nSubjs) ones(1,nSubjs)*2 ones(1,nSubjs)*3 ones(1,nSubjs)*4];</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg = [];</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.channel = {'EEG'};</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.latency = [0 0.6];</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.method = 'ft_statistics_montecarlo';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.clusterthreshold = 'nonparametric_common';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.neighbours = neighbours;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.statistic = 'ft_statfun_depsamplesFmultivariate';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.correctm = 'cluster';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.clusteralpha = 0.05;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.clusterstatistic = 'maxsum';</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.minnbchan = 2;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.tail = 0;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.clustertail = 0;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.alpha = 0.025;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.numrandomization = 500;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.design = design;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.uvar = 1;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">cfg.ivar = 2;</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><br class="">
</div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">%% permutation test statistical analysis</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="border:0px none;padding:0px;margin:0px" class=""><span style="font-size:13.3333px" class="">[stat] = ft_timelockstatistics(cfg, HH_timelock, HN_timelock, LH_timelock, LN_timelock);</span></div>
<div style="border:0px none;padding:0px;margin:0px" class=""><br class="">
</div>
</blockquote>
</blockquote>
And the error message :
<div class=""><br class="">
</div>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="line-height:1.5;margin-bottom:0px;margin-top:0px" class=""><span style="font-size:13.3333px" class=""> ft_timelockstatistics (172번 라인)</span></div>
</blockquote>
<blockquote style="margin:0px 0px 0px 40px;border:medium none;padding:0px" class="">
<div style="line-height:1.5;margin-bottom:0px;margin-top:0px" class=""><span style="font-size:13.3333px" class="">the length of the design matrix (2) does not match the number of observations in the data (4)</span></div>
<div style="line-height:1.5;margin-bottom:0px;margin-top:0px" class=""><br class="">
</div>
</blockquote>
</blockquote>
<span style="font-size:13.3333px" class="">I could not find any problem in my code and I followed the way the fieldtrip tutorial instructed. I have four conditions and I put four repetitions of 1:nSubjs in the unit variable (cfg.uvar) and nSubjs number of ones,
twos, threes, and fours each in the independent variable (cfg.ivar). It would be so grateful if you can tell me how to solve this problem. Best, Jaewon</span>
<div class=""><br class="">
</div>
<img src="https://mail.snu.ac.kr/checkread/MTU4NDQ3NTI0Mg==/ZmllbGR0cmlwQHNjaWVuY2UucnUubmw=/" width="1px" height="1px" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-5oxZvt5bELdM4fGuG08Paw8YCINrdUPywabMYh62UEhuzGtr_HDv9f9cHOCKsi5AJamP-h2BFXvG73kO8Z1VMZcyTEq5l3Hb4uNYw$" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
<br class="">
</div>
</blockquote>
<div class=""><br class="webkit-block-placeholder">
</div>
<img src="https://mail.snu.ac.kr/checkread/MTU4NDUwNTE4Nw==/ZmllbGR0cmlwQHNjaWVuY2UucnUubmw=/" width="1px" height="1px" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-5oxZvt5bELdM4fGuG08Paw8YCINrdUPywabMYh62UEhuzGtr_HDv9f9cHOCKsi5AJamP-h2BFXvG73kO8Z1VMZcyTEq5l3Hb4uNYw$" rel="noreferrer" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</blockquote>
</div>
</div>
<!-- original content --><br class="">
</div>
</blockquote>
<div class=""><br class="webkit-block-placeholder">
</div>
<img src="https://mail.snu.ac.kr/checkread/MTU4NDUzOTU3MA==/ZmllbGR0cmlwQHNjaWVuY2UucnUubmw=/" width="1px" height="1px" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-5oxZvt5bELdM4fGuG08Paw8YCINrdUPywabMYh62UEhuzGtr_HDv9f9cHOCKsi5AJamP-h2BFXvG73kO8Z1VMZcyTEq5l3Hb4uNYw$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div><!-- original content --><br></div></blockquote></p>
<img src='https://mail.snu.ac.kr:443/checkread/MTU4NDYxMzIxMA==/ZmllbGR0cmlwQHNjaWVuY2UucnUubmw=/' width='1px' height='1px' />