findPhysicalFrameIndices
findPhysicalFrameIndices returns the indices of valid frames
Example:
[idx epochs trigger]=findPhysicalFrameIndices(channel, trigger, duration, pretime)
where
channel is a sigTOOL channels object
trigger is a vector of trigger times
duration is the duration of the sweep
pre-time is the pre-trigger time
All times are in the same units (as returned by getTimeUnits(channel))
Returns
idx a 2-column vector with the start and end row indices for
each trigger
epochs the epochs (columns) that idx refers to
trigger an updated copy of the input, with invalid trigger times
omitted
-------------------------------------------------------------------------
Author: Malcolm Lidierth 01/08
Copyright © The Author & King's College London 2008
-------------------------------------------------------------------------