Timestamps

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

Timestamps()

Parameters

None.

Matlab Example

nex = actxserver('NeuroExplorer.Application');
doc = nex.OpenDocument('C:\Data\MyDataFile.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();