Skip to content

scEpochToVector

  scEpochToVector returns adc data as a vector of doubles

  Example:
  vec=scEpochToVector(channel, indices)
      returns the data indicated by indices

      channel is a sigTOOL data cell array element (or structure). Note
      single channel.

      indices, if supplied, is a matrix of linear indices into channel.adc.
      Each row of indices gives the first and last indices of a section of
      data to return. The sections are vertically concatenated in the output 
      vector

  It is anticipated that indices will generally indicate data sections of
  equal length and scEpochToVector will issue a warning if not.

 -------------------------------------------------------------------------
  Author: Malcolm Lidierth 09/07
  Copyright © The Author & King’s College London 2007-
 -------------------------------------------------------------------------

  Acknowledgements:
  Revisions: