MATLAB Application Program Interface Reference Help Desk

mexErrMsgTxt

Purpose

Issue error message and return to the MATLAB prompt

Fortran Syntax

Arguments

error_msg

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.



[ Previous | Help Desk | Next ]