Main Content

mxIsFromGlobalWS (Fortran)

Determine whether mxArray was copied from MATLAB global workspace

Fortran Syntax

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


The function returns 1 if the array was copied out of the global workspace. Otherwise, it returns 0. Use mxIsFromGlobalWS for standalone MAT-file programs.

Input Arguments

expand all

Pointer to an mxArray array, specified as mwPointer.

Introduced before R2006a