Skip to Main Content Skip to Search
Product Documentation

mexIsGlobal (C and Fortran) - Determine whether variable has global scope

C Syntax

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

Fortran Syntax

integer*4 mexIsGlobal(pm)
mwPointer pm

Arguments

pm

Pointer to an mxArray

Returns

Logical 1 (true) if the mxArray has global scope, and logical 0 (false) otherwise.

Description

Use mexIsGlobal to determine whether the specified mxArray has global scope.

Examples

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

See Also

mexGetVariable, mexGetVariablePtr, mexPutVariable, global

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS