Determine whether array was copied from MATLAB global workspace
Logical 1 (true) if the array was copied out of the global workspace, and logical 0 (false) otherwise.
mxIsFromGlobalWS is useful for standalone MAT-file programs. mexIsGlobal tells you whether the pointer you pass actually points into the global workspace.
See the following examples in matlabroot/extern/examples/eng_mat.