re contains: Would use a function called ea_contains and replace the calls to that. Should never name a function the same as built-in matlab functions. There aren’t many calls of contains in Lead-DBS.
Re Shoot, not sure, cannot debug right now. However wouldn’t really recommend shoot for DBS based on the Ewert 2019 Neuroimage article. Is there a particular reason you have to use it?
Can look into it somewhen but currently am on holidays.