[FieldTrip] Brain-shift compensation Error

Arjen Stolk a.stolk8 at gmail.com
Wed Oct 31 07:23:37 CET 2018


Hi Ignasi,

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?).

Arjen

On Tue, Oct 30, 2018 at 12:04 PM Ignasi Sols <ignasi.sols at nyu.edu> wrote:

> Dear all,
> I'm following the method developed by Stolk et al (2018) to localize the
> electrodes of ECoG data.
> 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?
>
> Thanks,
> Ignasi
>
>
> *using electrodes specified in the configuration*
> *using warp algorithm described in Dykstra et al. 2012 Neuroimage PMID:
> 22155045*
> *creating electrode pairs based on electrode positions*
> *Error using fmincon (line 241)*
> *You must provide a non-empty starting*
> *point.*
> *Error in warp_dykstra2012 (line 156)*
> *coord_snapped = fmincon(efun, coord0,*
> *[], [], [], [], [], [], cfun,*
> *options);*
> *Error in ft_electroderealign (line*
> *406)*
> *    norm.elecpos =*
>     warp_dykstra2012(cfg, elec,
>     headshape);
>
> --
> Ignasi Sols
> Postdoctoral Fellow
> Department of Psychology
> New York University
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20181030/66ef4b8c/attachment-0002.html>


More information about the fieldtrip mailing list