This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mxIsFromGlobalWS (C and Fortran)

Determine whether array was copied from MATLAB global workspace

C Syntax

#include "matrix.h"
bool mxIsFromGlobalWS(const mxArray *pm);

Fortran Syntax

#include "fintrf.h"
integer*4 mxIsFromGlobalWS(pm)
mwPointer pm



Pointer to an mxArray


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.


See the following examples in matlabroot/extern/examples/eng_mat.

Introduced before R2006a

Was this topic helpful?