Getvarfrommatlab function – Multichannel Systems NeuroExplorer User Manual

Page 266

Advertising
background image

5.5.9.3. GetVarFromMatlab Function

GetVarFromMatlab Function


Gets the specified neuron or event variable from Matlab.

Syntax


GetVarFromMatlab(doc, varname, isneuron)

Parameters

Parameter

Type

Description

doc

documentReference Reference to the document.

varname

string

The name of the matrix in Matlab workspace. The
matrix should be a double matrix with either one row
or one column of data containing timestamps in
seconds.

isneuron

double

If isneuron is 1, the imported variable is added to
the list of Neurons. Otherwise, the variable is added
to the list of events.

Returns


None

Comments


None

Usage

NexScript

doc = GetActiveDocument()

% get the 1-column matrix ev1 and add it to the list of events

GetVarFromMatlab(doc, "ev1", 0)

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 264

Advertising