Spike Toolbox |
![]() ![]() |
STIsValidSpikeTrainLevel
Test for a valid spike train level description
Syntax
[bValidLevel] = STIsValidSpikeTrainLevel(strLevel)
[bValidLevel, strLevelCanonical] = STIsValidSpikeTrainLevel(strLevel)
Description
strLevel
is a string (hopefully) specifying a spike train level. If
strLevel
is one of {definition, instance, mapping}
then bValid
will be true. Otherwise bValid
will be false.
STIsValidSpikeTrainLevel is insensitive to case. If a valid (but
non-standard) spike train level was supplied in strLevel
, then the correct
value will be returned in strCanonical
. For example 'DefInITion' -->
'definition'.
See Also
Understanding spike trains
![]() |
STIsZeroDuration
![]() |