Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mexWarnMsgIdAndTxt (C and Fortran)

Warning message with identifier

C Syntax

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

Fortran Syntax

#include "fintrf.h"
subroutine mexWarnMsgIdAndTxt(warningid, warningmsg)
character*(*) warningid, warningmsg

Arguments

warningid

String containing a MATLAB® message identifier. For information on creating identifiers, see Message Identifiers.

warningmsg

String to display. In C, the string can include conversion specifications, used by the ANSI® C printf function.

...

In C, any arguments used in the message. Each argument must have a corresponding conversion specification. Refer to your C documentation for printf conversion tables.

Description

The mexWarnMsgIdAndTxt function writes a warning message to the MATLAB command prompt. The warnings displayed are the same as warnings issued by the MATLAB warning function. To control the information displayed or suppressed, call the warning function with the desired settings before calling your MEX-file.

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

Introduced before R2006a

Was this topic helpful?