
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 Variable object.
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
Variable Interface
Application Interface
Document Interface
COM/ActiveX Interfaces
Page 345
Comentários a estes Manuais