Variable

Returns Variable object for the specified variable index or name.

Syntax

Variable(variableIndexOrName)

Parameters

Parameter

Type

Description

variableIndexOrName

int or string

1-based variable index or a string with the variable name

Return

Returns Variable object.

Matlab Example

nex = actxserver('NeuroExplorer.Application');
doc = nex.OpenDocument('C:\Data\MyDataFile.nex');
% get the first variable
var1 = doc.Variable(1);
% get the variable with the name Neuron04a
neuron = doc.Variable('Neuron04a');