External Interfaces Reference Previous page   Next Page
mexErrMsgTxt

Issue error and return to MATLAB prompt

Fortran Syntax

Arguments

errormsg
   Character array containing the error message to be displayed.

Description

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

Calling mexErrMsgTxt does not clear the MEX-file from memory. Consequently, mexErrMsgTxt 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, mexErrMsgTxt automatically frees any associated memory allocated by these calls.

See Also

mexErrMsgIdAndTxt, mexWarnMsgTxt, mexWarnMsgIdAndTxt


Previous page  mexErrMsgIdAndTxt mexEvalString Next page

© 1994-2005 The MathWorks, Inc.