What's the function of the 2 variable named  outline *** in the lay struct for EEG TD and TF cluster based permutation? And how does the data in the two variables correlate to the functions of cluster based permutation?<br><br>To perform a cluster based permutation on tf data,  I adapted a lay struct for my own analysis, which has 63 electrodes, from one made by my colleague, which then has 62 electrodes.  I changed the labels and orders of the electrodes,  calculated and added one positions,  reordered the positions  and added one row respectively in the weight and height.  However it still reported errors.  So is there something wrong with the outline variables?<br><br><br><html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px">
    <div style=" margin-top: 20px; margin-bottom: 12px; font-size: 14px; line-height: 1.25; color: #89898c; ">---- 回复的原邮件 ----</div>
    <div style=" margin-bottom: 12px; font-size: 13px; line-height: 1.25; color: #2c2c2e; padding: 2px; border-radius: 8px; background-color: #f0f0f0; ">
        <table width="100%" cellpadding="0" cellspacing="10" border="0">
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; ">发件人</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; "><a class="mail-from" style="color: #1c83eb; text-decoration: none" href="mailto:mikkelcv@drcmr.dk">mikkelcv@drcmr.dk</a></td>
            </tr>
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; white-space: nowrap; ">日期</td>
                <td class="mail-date" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; ">2024年02月29日 21:42</td>
            </tr>
            <tr style="">
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; ">收件人</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; "><a class="mail-to" style="color: #1c83eb; text-decoration: none" href="mailto:fieldtrip@science.ru.nl">FieldTrip discussion list<fieldtrip@science.ru.nl></a></td>
            </tr>
            <tr style="">
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; ">抄送至</td>
                <td valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; "><a class="mail-cc" style="color: #1c83eb; text-decoration: none" href="mailto:guoce_bisu_212@163.com">郭策2021220122<guoce_bisu_212@163.com></a></td>
            </tr>
            <tr>
                <td valign="top" style=" width: 4em; font-size: 13px; line-height: 1.25; color: #89898c; ">主题</td>
                <td class="mail-subject" valign="top" style=" font-size: 13px; line-height: 1.25; color: #2c2c2e; word-break: break-all; ">SV: [FieldTrip] user's question about ft_freqstatistics</td>
            </tr>
        </table>
    </div>
    <div><html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>


<style></style>
</head>
<div lang="DA" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Dear
</span><span style="font-family:"MS Gothic";color:black">郭策<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">If you want to do a cluster-based permutation test on the full sensor array, you need to define the layout of the electrodes for the
 test to know which electrodes are close to one another for the clustering. This will indeed vary from layout to layout. FieldTrip comes with templates for many standard layouts from different EEG cap manufacturers. If you use your own cap layout (or one not
 in FieldTrip), you need to create the “neighbours” structure first before you can do the cluster-based test. You can read more on this tutorial:
</span><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><a href="https://www.fieldtriptoolbox.org/example/neighbours/">https://www.fieldtriptoolbox.org/example/neighbours/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US">Mikkel<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">Fra:
</span></b><span style="color:black">fieldtrip <<A data-auto-link="1" href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.nl</A>> på vegne af
</span><span style="font-family:"MS Gothic";color:black">郭策</span><span style="color:black">2021220122 via fieldtrip <<A data-auto-link="1" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</A>><br>
<b>Dato: </b>torsdag, 29. februar 2024 kl. 14.31<br>
<b>Til: </b><A data-auto-link="1" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</A> <<A data-auto-link="1" href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</A>><br>
<b>Cc: </b></span><span style="font-family:"MS Gothic";color:black">郭策</span><span style="color:black">2021220122 <<A data-auto-link="1" href="mailto:guoce_bisu_212@163.com">guoce_bisu_212@163.com</A>><br>
<b>Emne: </b>[FieldTrip] user's question about ft_freqstatistics<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">To whom it may concern,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">When conducting cluster based permutation of ERP time-frequency data using fielrdtrip function "ft_freqstatistics",<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">a mat file containing a variable which then contains infomation of positions of electrodes is required. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">How could this file (or, this kind of files, based on different EEG caps) accessed online?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Also, how should this file be changed if data of some electrodes are removed (not interpolated)?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Many thanks<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</html>
</div>
</div>
</body>
</html>