Copy variable from MATLAB engine workspace
Pointer to a newly allocated mxArray structure, or NULL if the attempt fails. engGetVariable fails if the named variable does not exist.
engGetVariable reads the named mxArray from the MATLAB engine session associated with ep.
Use mxDestroyArray to destroy the mxArray created by this routine when you are finished with it.
See the following examples in matlabroot/extern/examples/eng_mat.