mexCallMATLABWithTrap (C and Fortran)
Call MATLAB function, user-defined function, or MEX file and capture error information
C Syntax
#include "mex.h" mxArray *mexCallMATLABWithTrap(int nlhs, mxArray *plhs[], int nrhs, mxArray *prhs[], const char *functionName);
Fortran Syntax
#include "fintrf.h" mwPointer mexCallMATLABWithTrap(nlhs, plhs, nrhs, prhs, functionName) integer*4 nlhs, nrhs mwPointer plhs(*), prhs(*) character*(*) functionName
Description
The mexCallMATLABWithTrap function performs the same function as
mexCallMATLAB. However, if MATLAB® detects an error when executing functionName,
MATLAB returns control to the line in the MEX file immediately following the call
to mexCallMATLABWithTrap.
Input Arguments
Output Arguments
Version History
Introduced in R2008b