engGetVariable (C)
Copy variable from MATLAB engine workspace
C Syntax
#include "engine.h" mxArray *engGetVariable(Engine *ep, const char *name);
Description
engGetVariable reads the named mxArray from
the MATLAB® engine session associated with ep.
The limit for the size of data transferred is 2 GB.
Use mxDestroyArray to destroy the mxArray
created by this routine when you are finished with it.
Input Arguments
Output Arguments
Examples
To open an example, type:
edit([fullfile(matlabroot,"extern","examples","eng_mat","filename")]);
where filename is:
engdemo.cfor a C example on UNIX® operating systems.engwindemo.cfor a C example on Microsoft® Windows® operating systems.
Version History
Introduced before R2006a