Use
mexGetVariablePtr("global", name);
instead of
mexGetGlobal(name);
See Also
mexGetVariable, mxGetName (Obsolete), mxGetPr, mxGetPi
mexGetVariable
mxGetName (Obsolete)
mxGetPr
mxGetPi
© 1994-2005 The MathWorks, Inc.