[FieldTrip] channels interpolation

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Fri Feb 3 09:50:26 CET 2012

Dear Olga,

indeed that there is a problem with the sensor definition. In addition 
to specifying neighbours, the channelrepair function needs to know the 
distance between channels.  Therefore, you need to provide a definition 
of the sensor position additionally. However, the error message you get 
is not the one you should see - there should be one that is more 
elaborate and intuitively understandable ;) Could you send me (outside 
the mailinglist) the whole error message, including the lines where this 
goes wrong? I will then fix the problem asap.

Btw, the ft_fetch_sens function has recently been moved to the 
FieldTrip/private folder, that means Matlab prevents you from seeing or 
calling the function directly, but if you just cd to that directory, you 
can access the file. Also, I just changed the error message that you 
should have seen to be more elaborate (will be available from tomorrow on).


On 2/2/2012 11:49 PM, Sysoeva, Olga Vladimirovna wrote:
> Dear group,
> Am I doing something wrong or is it a bug?
> I needed to do some bad channel interpolation for my dataset (epoched 
> data).
> So I found out that there is a ft_channel_repair function. And I tried 
> to use it in the following way.
> cfg = [];
> cfg.method        = 'distance'%, 'triangulation' or 'template' 
> (default = 'distance')
> cfg.neighbourdist = 4; % number, maximum distance between neighbouring 
> sensors (only for 'distance')
> cfg.layout        = 
> 'C:\Matlab_programs\Fieldtrip\My_Fieldtrip\EEG1010_modified32.lay';
> [neighbours] = ft_prepare_neighbours(cfg, data)
> cfg = [];
>   cfg.badchannel     = {'F4'};%cell-array, see FT_CHANNELSELECTION for 
> details
>   cfg.neighbours     = neighbours;
> [interp] = ft_channelrepair(cfg, data)
> But I'm getting the error ??? Reference to non-existent field 'pnt'.
> It seems to me that I'm not preparing the sensor(electrode) structure 
> correctly, but I couldn't find mistake. I do follow the tutorial. 
> There are a link that I need to prepare the electrode structure as in 
> ft_fetch_sens function, but I my version of Fieldtrip I do not have 
> this function.
> I'll appreciate any help,
> Best Regards,
> Olga.
> __________________________________________________________
> Olga Sysoeva,
> Research Associate, PhD
> Psychiatry Department,
> Washington University School of Medicine
> Campus Box 8134
> 660 South Euclid Ave
> Saint Louis, MO 63110-9909
> ------------------------------------------------------------------------
> The materials in this message are private and may contain Protected 
> Healthcare Information or other information of a sensitive nature. If 
> you are not the intended recipient, be advised that any unauthorized 
> use, disclosure, copying or the taking of any action in reliance on 
> the contents of this information is strictly prohibited. If you have 
> received this email in error, please immediately notify the sender via 
> telephone or return mail.
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120203/0e0a677b/attachment-0002.html>

More information about the fieldtrip mailing list