mexWarnMsgIdAndTxt (C and Fortran) - Issue warning message with identifier

C Syntax

#include "mex.h"
void mexWarnMsgIdAndTxt(const char *warningid,
  const char *warningmsg, ...);

Fortran Syntax

mexWarnMsgIdAndTxt(warningid, warningmsg)
character*(*) warningid, warningmsg

Arguments

warningid

String containing a MATLAB message identifier. For information on creating identifiers, see Message Identifiers in the MATLAB Programming Fundamentals documentation.

warningmsg

String containing the warning message to be displayed. In C, the string may include formatting conversion characters, such as those used with the ANSI C sprintf function.

...

In C, any additional arguments needed to translate formatting conversion characters used in warningmsg. Each conversion character in warningmsg is converted to one of these values.

Description

Call mexWarnMsgIdAndTxt to write a warning message and its corresponding identifier to the MATLAB window.

Unlike mexErrMsgIdAndTxt, mexWarnMsgIdAndTxt does not cause the MEX-file to terminate.

See Also

mexErrMsgTxt, mexErrMsgIdAndTxt, mexWarnMsgTxt

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS