| External Interfaces/API Reference | ![]() |
True if the mxArray was copied from MATLAB's global workspace
C Syntax
#include "matrix.h" bool mxIsFromGlobalWS(const mxArray *array_ptr);
Arguments
array_ptr
Pointer to an mxArray.
Returns
true if the array was copied out of the global workspace, and false otherwise.
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
See matdgns.c and matcreat.c in the eng_mat subdirectory of the examples directory.
See Also
| mxIsFinite | mxIsFull (Obsolete) | ![]() |