| MATLAB® | ![]() |
#include "mex.h" mxArray *mexCallMATLABWithTrap(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[], const char *functionName);
mwPointer mexCallMATLABWithTrap(nlhs, plhs, nrhs, prhs, functionName) integer*4 nlhs, nrhs mwPointer plhs(*), prhs(*) character*(*) functionName
For more information about arguments, see mexCallMATLAB.
Number of desired output arguments.
Array of pointers to output arguments.
Number of input arguments.
Array of pointers to input arguments.
Character string containing the functionName of the MATLAB built-in, operator, M-file, or MEX-file that you are calling.
NULL if no error occurred; otherwise, a pointer to an mxArray of class MException.
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. For information about MException, see Responding to an Exception
![]() | mexCallMATLAB (C and Fortran) | mexErrMsgIdAndTxt (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |