Currently, each entry of the neighbour-structure needs to have two fields: 'label' and 'neighblabel'. cfg.neighbours must be a struct-array, with each entry having these two fields. You can then define the structure as follows:
cfg.neighbours = struct; cfg.neighbours(1).label = 'Fp1'; cfg.neighbours(1).neighblabel = {'Fpz'; 'AFz'};
Similarly, you can load a template and then change the neighbour definition. Note, although repeating this over and over again: verify your choice using ft_neighbourplot. In earlier versions of FieldTrip, neighbours were defined as a cell-array, please use fixneighbours to convert the cell-array to a struct-array.
If you feel that a template is representing a suboptimal neighbour definition, feel free to contact Jörn Horschig jm.horschig@donders.ru.nl - he is administrating the Fieldtrip template directory. Please let him know what data you use and optimally send him the figures from ft_neighbourplot with the old and with the updated template.
Share this page: