Getbincount function – Multichannel Systems NeuroExplorer User Manual

Page 302

Advertising
background image

5.5.13.22. GetBinCount Function

GetBinCount Function


Calculates the number of timestamps in the specified time range.

Syntax


double GetBinCount(var, timeMin, timeMax)

Parameters

Parameter

Type

Description

var

variableReference

Reference to a variable. Should be a reference to a
neuron, event, interval or continuous variable.

timeMin

double

Time range minimum (in seconds).

timeMax

double

Time range maximum (in seconds).

Returns


The number of timestamps of the specified variable in the specified time range.

Comments


None

Usage

NexScript

doc = GetActiveDocument()

neuron = GetVarByName("Neuron04a")

% calculate how many timestamps of Neuron04a are in the interval [5.3s, 10.2s]

count = GetBinCount(neuron, 5.3, 10.2)

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 300

Advertising