Navigation

Operators and Keywords

Function List:

C++ API

: [msg, msgid] = lastwarn ()
: lastwarn (msg)
: lastwarn (msg, msgid)

Query or set the last warning message.

When called without input arguments, return the last warning message and message identifier.

With one argument, set the last warning message to msg.

With two arguments, also set the last message identifier.

See also: warning, lasterror, lasterr.

Package: octave