Timestamps method – Multichannel Systems NeuroExplorer User Manual

Page 363

Advertising
background image

6.3.3. Timestamps Method

Variable.Timestamps Method


Returns all the timestamps of the variable in seconds. Timestamps are returned as an array (vector)
of double values. For interval variables, returns the interval starts. For waveforms variable, returns the
waveform timestamps. For continuous variables, returns the timestamps corresponding to all the
variable data points.

Syntax


SAFEARRAY(double) Timestamps()

Parameters


None.

Usage

Matlab

nex = actxserver('NeuroExplorer.Application');

doc = nex.OpenDocument('C:\Data\TestDataFile.nex');

% get the first neuron variable

neuron1 = doc.Neuron(1);

% get all the timestamps

ts = neuron1.Timestamps();

% now ts is a vector of timestamps

%

% get the first continuous variable

cont1 = doc.Continuous(1);

% get all the timestamps for continuous variable

cont1_ts = cont1.Timestamps();

See Also

Variable Interface

Document Interface

COM/ActiveX Interfaces

Page 361

Advertising