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       = string, 'yes' or 'no', whether the function will print feedback text in the command window
    cfg.neighbours    = neighbourhood structure, see FT_PREPARE_NEIGHBOURS (optional)
    cfg.visible       = string, 'on' or 'off', whether figure will be visible (default = 'on')
    cfg.enableedit    = string, 'yes' or 'no', allows the user to flexibly add or remove edges between vertices (default = 'no')
  and either 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