units.m 692 B

12345678910111213141516171819
  1. function res = units(this, varargin)
  2. % Method for setting/getting all units, over channels
  3. % FORMAT res = units(this, ind)
  4. % _______________________________________________________________________
  5. % Copyright (C) 2008-2012 Wellcome Trust Centre for Neuroimaging
  6. % Stefan Kiebel
  7. % $Id: units.m 5933 2014-03-28 13:22:28Z vladimir $
  8. if this.montage.Mind == 0
  9. res = getset(this, 'channels', 'units', varargin{:});
  10. else
  11. if nargin == 3
  12. this.montage.M(this.montage.Mind) = getset(this.montage.M(this.montage.Mind), 'channels', 'units', varargin{:});
  13. res = this;
  14. else
  15. res = getset(this.montage.M(this.montage.Mind), 'channels', 'units', varargin{:});
  16. end
  17. end