indchannel.m 577 B

123456789101112131415161718
  1. function res = indchannel(this, label)
  2. % Method for getting channel indices based on channel labels
  3. % FORMAT res = indchannel(this, label)
  4. % this - MEEG object
  5. % label - string or cell array of labels
  6. %
  7. % res - vector of channel indices matching labels
  8. %__________________________________________________________________________
  9. % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
  10. % Vladimir Litvak
  11. % $Id: indchannel.m 3254 2009-07-07 15:18:54Z vladimir $
  12. if ischar(label)
  13. label = {label};
  14. end
  15. [junk, res] = match_str(label, chanlabels(this));