
5.5.8.6. FirstNAfter Function
FirstNAfter Function
Creates the new event containing the first N timestamps of one variable after each of the timestamps
of the second variable.
Syntax
variableReference FirstNAfter(var1, var2, count)
Parameters
Parameter Type Description
var1 variableReference Reference to the variable.
var2 variableReference Reference to the variable.
count double How many timestamps of var1 (that are after each
timestamp of var2) to copy to the result.
Returns
The reference to the new variable.
Comments
None
Usage
NexScript
doc = GetActiveDocument()
doc.first5SpikesAfterStimulus = FirstNAfter(GetVarByName(doc,"Neuron1"),
GetVarByName(doc,"Stimulus"), 5)
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 234
Comentários a estes Manuais