External Interfaces Reference Previous page   Next Page
mexErrMsgIdAndTxt

Issue error with identifier and return to MATLAB prompt

Fortran Syntax

Arguments

errorid
   Character array containing a MATLAB message identifier. See Message Identifiers in the MATLAB documentation for information on this topic.

errormsg
   Character array containing the error message to be displayed.

Description

Call mexErrMsgIdAndTxt to write an error message and its corresponding identifier to the MATLAB window. After the error message prints, MATLAB terminates the MEX-file and returns control to the MATLAB prompt.

Calling mexErrMsgIdAndTxt does not clear the MEX-file from memory. Consequently, mexErrMsgIdAndTxt does not invoke any registered exit routine to allocate memory.

If your application calls mxCalloc or one of the mxCreate routines to create mxArray pointers, mexErrMsgIdAndTxt automatically frees any associated memory allocated by these calls.

See Also

mexErrMsgTxt, mexWarnMsgIdAndTxt, mexWarnMsgTxt


Previous page  mexCallMATLAB mexErrMsgTxt Next page

© 1994-2005 The MathWorks, Inc.