Spike Toolbox |
![]() ![]() |
STCrop
Crop a spike train to a specified time extent
Syntax
[stCroppedTrain] = STCrop(stTrain, tMinTime, tMaxTime)
Description
STCrop will crop a spike train to the extents specified in tMinTime
and
tMaxTime
(in seconds). Any spikes outside these times will be removed.
stCroppedTrain
will be a new spike train containing spikes only in the
time range specified.
Note: STCrop will not shift the cropped spike train to zero -- see the
STNormalise function for help with this. However, STCrop will correct the
duration of the spike train to end at tMaxTime
.
See Also
STNormalise
![]() |
STCrossCorrelation
![]() |