[FieldTrip] Brain-shift compensation Error

Ignasi Sols ignasi.sols at nyu.edu
Tue Oct 30 19:38:13 CET 2018

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?


*using electrodes specified in the configuration*
*using warp algorithm described in Dykstra et al. 2012 Neuroimage PMID:
*creating electrode pairs based on electrode positions*
*Error using fmincon (line 241)*
*You must provide a non-empty starting*
*Error in warp_dykstra2012 (line 156)*
*coord_snapped = fmincon(efun, coord0,*
*[], [], [], [], [], [], cfun,*
*Error in ft_electroderealign (line*
*    norm.elecpos =*
    warp_dykstra2012(cfg, elec,

Ignasi Sols
Postdoctoral Fellow
Department of Psychology
New York University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20181030/a84431b6/attachment-0001.html>

More information about the fieldtrip mailing list