warningmsgonly

Displays the string s as a warning, but without any warning stack information.

Syntax

warningmsgonly(s)

Inputs

s
Type: string

Example

Print number in the warning message:

 A = 10;
 warningmsgonly('MESSAGE NUMBER %d', A)
Warning: MESSAGE NUMBER 10