Spike Toolbox |
![]() ![]() |
STExtract
Extract a single spike train from a multiplexed mapping
Syntax
[stExtTrain] = STExtract(stTrain, nAddr1, nAddr2, ...)
[stExtTrain] = STExtract(stTrain, [nAddr1Min nAddr1Max], [nAddr2Min nAddr2Max], ...)
Description
stTrain
must contain a mapped spike train. nAddr...
specify neuron
and synapse addresses to extract from stTrain
. The spikes from this
address will be returned in a new mapped spike train stExtTrain
.
Under the second usage mode, an address range can be specified. In this
case, all spikes with addresses falling within the address range will be
extracted and returned in stExtTrain
. For each addressing field, a
minimum and maximum should be supplied. If these are the same value, only
one is required.
For example, the command
STExtract(stTrain, [0 5], 4)
will extract spikes from stTrain
, using {0 4}
as the minimum address and
{5 4}
as the maximum address.
STExtract(stTrain, [0 5], [2 4])
will extract spikes from stTrain
, using {0 2}
as the minimum address and
{5 4}
as the maximum address.
Note that the addressing range applies to the logical addresses, and the
range for each field does not apply specifically to that field. In the
second example above, the address {7 3}
may fall with the addressing range,
if the second field is major and the first minor. This becomes clear when
one considers that the minimum address may translate to 2.0
and the
maximum to 4.8
in logical addresses.
Note that the addressing specification will be taken from stTrain
and can not be overridden.
See Also
Spike train mappings,
STMultiplex
![]() |
STFindSynchronousPairs
![]() |