Copy variable from MATLAB engine workspace
#include "engine.h" mxArray *engGetVariable(Engine *ep, const char *name);
engGetVariable reads the named
the MATLAB® engine session associated with
The limit for the size of data transferred is 2 GB.
mxDestroyArray to destroy the
created by this routine when you are finished with it.
ep— Pointer to engine
Pointer to engine, specified as
name— Name of mxArray
const char *
mxArray to get from the MATLAB workspace, specified as
ptr— Pointer to mxArray
Pointer to a newly allocated
mxArray *. Returns
the attempt fails.
engGetVariable fails if the named
variable does not exist.
See these examples in