Note that this reference documentation is identical to the help that is displayed in MATLAB when you type “help ft_neighbourplot”.

  FT_NEIGHBOURPLOT visualizes neighbouring channels in a particular channel
  configuration. The positions of the channel are specified in a
  gradiometer or electrode configuration or from a layout.
  Use as
  or as
    ft_neighbourplot(cfg, data)
  where the configuration can contain
    cfg.verbose       = 'yes' or 'no', if 'yes' then the plot callback will include text output
    cfg.neighbours    = neighbourhood structure, see FT_PREPARE_NEIGHBOURS (optional)
    cfg.enableedit    = 'yes' or 'no' (default). allows the user to
                        flexibly add or remove edges between vertices
  or one of the following options
    cfg.layout        = filename of the layout, see FT_PREPARE_LAYOUT
    cfg.elec          = structure with electrode definition
    cfg.grad          = structure with gradiometer definition
    cfg.elecfile      = filename containing electrode definition
    cfg.gradfile      = filename containing gradiometer definition
  If cfg.neighbours is not defined, this function will call
  FT_PREPARE_NEIGHBOURS to determine the channel neighbours. The
  following data fields may also be used by FT_PREPARE_NEIGHBOURS
    data.elec     = structure with EEG electrode positions
    data.grad     = structure with MEG gradiometer positions
  If cfg.neighbours is empty, no neighbouring sensors are assumed.
  Use cfg.enableedit to create or extend your own neighbourtemplate