Spike Toolbox |
![]() ![]() |
Spike Toolbox tutorial
Combining the trains
Concatenating the trains
STConcat is a function that takes two or more spike train obejcts and concatenates them in time.
[stTrain] = STConcat(stTrain1, stTrain2)
[stTrain] = STConcat(stTrain1, stTrain2, strLevel)
[stTrain] = STConcat(stCellTrain)
[stTrain] = STConcat(stCellTrain, strLevel)
By default STConcat will operate on the most complex available spike train level (ie first mappings, then instances). Concatenating our two spike trains will give us a train twice as long, but the definitions will be stripped away from the resulting train.
stLonger = STConcat(stRising, stFalling);
figure, STPlotRaster(stLonger);
If we once again use STDescribe to examine the resulting toolbox object, we can see that only a spike train instance remains.
STDescribe(stLonger)
--- Spike toolbox version [0.03]
This is an instantiated spike train:
Using chunked mode encoding
Duration [4.00] seconds
![]() |
Stimulating a chip ![]() |