Variable method – Multichannel Systems NeuroExplorer User Manual
Page 347
6.2.14. Variable Method
Document.Variable Method
Returns Variable object for the specified variable index or name.
Syntax
Variable Variable(object variableIndexOrName)
Parameters
Parameter
Type
Description
variableIndexOrName
int or string
1-based variable index or a string with the variable
name
Returns
Returns
Usage
Matlab
nex = actxserver('NeuroExplorer.Application');
doc = nex.OpenDocument('C:\Data\TestDataFile.nex');
% get the first variable
var1 = doc.Variable(1);
% get the variable with the name Neuron04a
neuron = doc.Variable('Neuron04a');
JavaScript
var nex = new ActiveXObject("NeuroExplorer.Application");
var doc = nex.OpenDocument("C:\\Data\\TestDataFile.nex");
// get the first variable
var var1 = doc.Variable(1);
// get the variable with the name Neuron04a
var neuron = doc.Variable("Neuron04a");
See Also
Page 345