
5.5.9.4. GetContVarFromMatlab Function
GetContVarFromMatlab Function
Imports the specified matrix from Matlab. Each column of the matrix is imported as a continuous
variable.
Syntax
GetContVarFromMatlab(doc, MatrixName, TimestampOfFirstValue, TimeStep)
Parameters
Parameter Type Description
doc documentReference Reference to the document.
MatrixName string The name of a matrix in Matlab workspace.
TimestampOfFirstValue double The timestamp (in seconds) of the first value of each
continuous variable.
TimeStep double Digitizing time step (in seconds) of the imported
variables.
Returns
None
Comments
This function adds continuous variables to the specified document. The names of the variables
include the MatrixName and the column number.
Usage
NexScript
doc = GetActiveDocument()
% import matrix contData from Matlab. first timestamp is 0, time step is 0.001s.
GetContVarFromMatlab(doc, "contData", 0, 0.001)
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 265
Kommentare zu diesen Handbüchern