Spike Toolbox |
![]() ![]() |
STFindSynchronousPairs
Identify synchronous spikes in spike trains
Syntax
[stPairs] = STFindSynchronousPairs(stTrain1, stTrain2)
[stPairs] = STFindSynchronousPairs(stTrain1, stTrain2, tWindowSize)
[stPairs] = STFindSynchronousPairs(stTrain1, stTrain2, tWindowSize, strLevel)
[stPairs] = STFindSynchronousPairs(stTrainArray)
[stPairs] = STFindSynchronousPairs(stTrainArray, tWindowSize)
[stPairs] = STFindSynchronousPairs(stTrainArray, tWindowSize, strLevel)
Description
stPairs
will contain a spike train instance, each spike of which
represents a spike in stTrain1
that had a corresponding spike in
stTrain2
that falls within the specified time window. If tWindowSize
is
not supplied, the toolbox option DefaultWindowSize will be used. To
change this setting, see STOptions.
strLevel
can optionally be provided to specify a spike train level to
match, and should be one of {instance, mapping}
.
STFindSynchronousPairs can accept a cell array of spike trains. In this
case, the matching result from the first two trains will be repeatedly
matched through the remaining trains. For example, the first two trains
will be matched, then this result will be matched with the third train, and
so on.
See Also
STOptions
![]() |
STFlatten
![]() |