<div dir="ltr"><div dir="ltr"><div>Many thanks, Arjen. I could solve the problem following your suggestion. </div><div>It was an issue with the format of the channel information, that was not recognized by<i> ft_channelselection.</i> </div><div><br></div><div>Best, </div><div>Ignasi</div><div><div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 31, 2018 at 2:26 AM Arjen Stolk <<a href="mailto:a.stolk8@gmail.com">a.stolk8@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ignasi,<div><br></div><div>One can only guess based on that error msg alone. You might want to put a debug marker at line 156, check whether coord0 is truly empty, and then try to trace back to what's causing it to be empty (e.g., an empty elecpos field in your elec structure?).</div><div><br></div><div>Arjen</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 12:04 PM Ignasi Sols <<a href="mailto:ignasi.sols@nyu.edu" target="_blank">ignasi.sols@nyu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear all, <div>I'm following the method developed by Stolk et al (2018) to localize the electrodes of ECoG data. </div><div>I'm getting this error on step 23 (Project the electrode grids to the surface hull of the implanted hemisphere) and I can't solve it. Could anyone help me with this? </div><div><br></div><div>Thanks, </div><div>Ignasi</div><div><br></div><div><br></div><div><div><i>using electrodes specified in the configuration</i></div><div><i>using warp algorithm described in Dykstra et al. 2012 Neuroimage PMID: 22155045</i></div><div><i>creating electrode pairs based on electrode positions</i></div><div><i><font color="#ff0000">Error using fmincon (line 241)</font></i></div><div><i><font color="#ff0000">You must provide a non-empty starting</font></i></div><div><i><font color="#ff0000">point.</font></i></div><div><i><font color="#ff0000">Error in warp_dykstra2012 (line 156)</font></i></div><div><i><font color="#ff0000">coord_snapped = fmincon(efun, coord0,</font></i></div><div><i><font color="#ff0000">[], [], [], [], [], [], cfun,</font></i></div><div><i><font color="#ff0000">options);</font></i></div><div><i><font color="#ff0000">Error in ft_electroderealign (line</font></i></div><div><i><font color="#ff0000">406)</font></i></div><div><i><font color="#ff0000">    norm.elecpos =</font></i></div><div><font color="#ff0000">    warp_dykstra2012(cfg, elec,</font></div><div><font color="#ff0000">    headshape); </font></div></div><div><br>-- <br><div dir="ltr" class="m_-2550190579694659104m_-4240381099002136568gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(136,136,136)">Ignasi Sols </span></div><div><span style="color:rgb(136,136,136)">Postdoctoral Fellow</span><br></div><span style="color:rgb(136,136,136)">Department of Psychology</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">New York University</span><br></div></div></div></div></div></div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=Jx9wYcv0XnbORxGzfpEH0gqB1QyHZMaw-4hs4evzORE&e=" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=9nWIVPM4Xf2SQkk3fMSCzXvE82mHFH-pnn67Fhygfyk&e=" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=Jx9wYcv0XnbORxGzfpEH0gqB1QyHZMaw-4hs4evzORE&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__mailman.science.ru.nl_mailman_listinfo_fieldtrip&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=Jx9wYcv0XnbORxGzfpEH0gqB1QyHZMaw-4hs4evzORE&e=</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=9nWIVPM4Xf2SQkk3fMSCzXvE82mHFH-pnn67Fhygfyk&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__doi.org_10.1371_journal.pcbi.1002202&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=MfcAKxrNJUDchBMH7cGf8A7flR7i0Mg4wa1BIfRAxTM&m=ogxF67dx9cUcJr32WF9DDK-sz4FQ20js2rkptNpxMBA&s=9nWIVPM4Xf2SQkk3fMSCzXvE82mHFH-pnn67Fhygfyk&e=</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(136,136,136)">Ignasi Sols </span></div><div><span style="color:rgb(136,136,136)">Postdoctoral Fellow</span><br></div><span style="color:rgb(136,136,136)">Department of Psychology</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">New York University</span><br></div></div></div></div>