| MATLAB Application Program Interface | Search  Help Desk |
| mxIsFromGlobalWS | Examples See Also |
True if the mxArray was copied from MATLAB's global workspace
C Syntax
#include "matrix.h" bool mxIsFromGlobalWS(const mxArray *array_ptr);
Arguments
array_ptrmxArray.
Returns
true if the array was copied out of the global workspace; otherwise, returns false.
Description
mxIsFromGlobalWS is useful for stand-alone MAT and engine programs. mexIsGlobal tells you if the pointer you pass actually points into the global workspace.Examples
Seematdgns.c and matcreat.c in the eng_mat subdirectory of the examples directory.
See Also
mexIsGlobal