Spike Toolbox

STGetSpikeTimes
Extract spike times from a spike train

Syntax
[vtSpikeTimes, fSamplingRate] = STGetSpikeTimes(stTrain <, strLevel>)

Description
stTrain is either an instantiated or a mapped spike train. Spike train definitions are not supported (obviously, as they have no spikes). strLevel is an optional argument specifying what spike train level to get spike times from. If strLevel is not supplied, spike train instances will be used in preference to spike train mappings.

vtSpikeTimes will be a column vector containing the times of all spikes in seconds. fSamplingRate will be the sampling rate used to generate the spike train. vtSpikeTimes can be converted into index format by multiplying by fSamplingRate and rounding.

See Also
Understanding spike trains


$Id: STGetSpikeTimes.html 1783 2005-08-31 21:05:51Z dylan $