nchannels.m 433 B

1234567891011121314
  1. function res = nchannels(this)
  2. % returns number of channels
  3. % FORMAT res = nchannels(this)
  4. % _______________________________________________________________________
  5. % Copyright (C) 2008-2012 Wellcome Trust Centre for Neuroimaging
  6. % Vladimir Litvak
  7. % $Id: nchannels.m 5025 2012-10-31 14:44:13Z vladimir $
  8. if this.montage.Mind==0
  9. res = length(this.channels);
  10. else
  11. res = length(this.montage.M(this.montage.Mind).channels);
  12. end