nfrequencies.m 444 B

1234567891011121314
  1. function res = nfrequencies(this)
  2. % Method for getting the number of frequencies for TF data
  3. % FORMAT res = nsamples(this)
  4. % _______________________________________________________________________
  5. % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
  6. % Stefan Kiebel
  7. % $Id: nfrequencies.m 2846 2009-03-10 17:38:32Z guillaume $
  8. if ~strncmp(transformtype(this), 'TF',2)
  9. res = [];
  10. else
  11. res = length(this.transform.frequencies);
  12. end