How can I define my own neighbourhood templates or updating an already existing template?

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.

faq/how_can_i_define_my_own_neighbourhood_template.txt · Last modified: 2011/09/07 12:24 by lilla

You are here: startfaqhow_can_i_define_my_own_neighbourhood_template
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0