warning - Warning messages (original) (raw)

Scilab 5.3.3

Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Scilab > warning

Calling Sequence

warning('string') warning('off') warning('on') mode = warning('query')

Description

prints the character string 'string' in a warning message

'on' enable warning messages.

'off' disable warning messages.

'query' get state 'on' or 'off'.

Examples

warning('on') warning('this is a warning') warning('off') warning('this is a warning') warning('query') warning('on') // Example with a localized message warning(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"),"myFunction",2));

See Also