Contents

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

integer*4 mxIsFromGlobalWS(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the array was copied out of the global workspace, and logical 0 (false) otherwise.

Description

mxIsFromGlobalWS is useful for standalone MAT-file programs.

Examples

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

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

Was this topic helpful?