Determine whether mxArray was copied from MATLAB global workspace
#include "matrix.h" bool mxIsFromGlobalWS(const mxArray *pm);
The function returns logical 1
(true
) if the array
was copied out of the global workspace. Otherwise, it returns logical 0
(false
). Use mxIsFromGlobalWS
for standalone
MAT-file programs.