Engine.PutVariable

Engine.PutVariable — puts a variable into the MATLAB engine.

Syntax

Engine.PutVariable (varname, value)
		

Arguments

varname
The name of the MATLAB variable, as a string.
value
Any one of:
  • a number
  • a string
  • a 1-dimensional array of numbers or strings
  • a 2-dimensional array of numbers
  • an mxArray
If the value is a Gamma type, it is first converted to a MATLAB type using a call to mxGammaToArray.

Description

This method is similar to the MATLAB engPutVariable function, but it can accept Gamma types.