Description Usage Arguments Value Author(s) References See Also
These functions allow the R user to assign or retrieve one or more Matlab variables from within R. One can assign R objects to the Matlab workspace and retrieve the values of existing Matlab variables as R objects.
1 2 | .MatlabPut(..., engine, .values = list(...), where = "base")
.MatlabGet(what, engine, multi = FALSE, .convert = TRUE, where = "base")
|
... |
named R objects that are marshalled to Matlab and assigned in the
Matlab workspace using the names given in the R call,
e.g. |
what |
names of the Matlab variables whose values are to be retrieved. |
.values |
a named list of R objects to store as Matlab variables. This is provided as an equivalent to the ... but to be used for programmatic access to this function rather than interactive use. |
engine |
the Matlab engine reference used to identify the engine in which the variables are to be stored or retrieved. |
where |
currently ignored but may be used if we implement a MEX-based interface rather than an Engine-based interface, i.e. using the different Matlab external interfaces. |
multi |
a logical value indicating whether the results should be left
in a list ( |
.convert |
a logical vector indicating which variables to
convert to R objects and which to leave as references to Matlab objects.
This is a vector parallel to the |
If multi
is TRUE
, a list
with as many elements as variables requested.
If multi
is FALSE
and the number of variables
requested is 1, then just that object is returned.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
Matlab External Interface Guide, the Engine API. Matlab User's Guide
.Matlab
.MatlabEval
.MatlabInit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.