Spike Toolbox

STMultiplex
Multiplex spike trains

Syntax
[stMuxTrain] = STMultiplex(stTrain1, stTrain2, ...) [stMuxTrain] = STMultiplex(strLevel, stTrain1, stTrain2, ...) [stMuxTrain] = STMultiplex(stTrainCell) [stMuxTrain] = STMultiplex(strLevel, stTrainCell)

Description
stTrain1, stTrain2, etc. are spike strains containing either instances or mappings. STMultiplex will combine the two trains into a sinlge train by interleaving or otherwise the individual spikes from the two trains. A specific spike train level to multiplex can be specifed using strLevel, this argument must be one of {instance, mapping}.

STMultiplex can accept a cell array of spike trains for multiplexing. The optional strLevel argument can still be supplied. In this mode, the spike trains in the cell array will be multiplexed together and returned as a single train.

Note: STMultiplex currently assumes that concatenating two chunks will never give a chunk bigger than can fit in a single matrix. Fixing this would make the algorithm more complex, and be a pain.

See Also
Multiplexing spike trains, STExtract


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