<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">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_-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://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>