Skip to content

getSourceName

  getSourceName method for the scchannel class

  Examples
  out=getSourceName(obj);
  out=getSourceName(channels{:});
  out=getSourceName(channels{:}, mode);
  out=getSourceName(channels{:}, ext, mode);

  Returns the names of the original source files from which the data were
  read as a cell column of strings
  If ext is specified as a string, only files with that extension will be
  returned. Note that wildcards are not supported.

  If mode is false or empty:
  Where the source file is not specified in scchannel object, or does not
  match ext, the entry for that channel will be returned as an empty string.

  If mode is true:
  Empty entries will be removed from the returned cell array

  -------------------------------------------------------------------------
  Author: Malcolm Lidierth 01/10
  Copyright © The Author & King's College London 2010-
  -------------------------------------------------------------------------