MATLAB Application Program Interface Reference Help Desk

mexWarnMsgTxt

Purpose

Issue warning message

C Syntax

Arguments

warning_msg

String containing the warning message to be displayed.

Description

mexWarnMsgTxt causes MATLAB to display the contents of error_msg.

Unlike mexErrMsgTxt, mexWarnMsgTxt does not cause the MEX-file to terminate.

Examples

Consider a MEX-file that expects two input arguments. If the user enters no arguments, the MEX-file simply terminates. If the user enters one or more arguments, a warning is given but the MEX-file proceeds.

For an additional example, see mexWarnMsgTxt.c in the mex subdirectory of the examples directory.

See Also

mexErrMsgTxt



[ Previous | Help Desk | Next ]