(octave.info)Handling Warnings


Prev: Handling Errors Up: Errors and Warnings
Enter node , (file) or (file)node

12.2 Handling Warnings
======================

Like an error, a warning is issued when something unexpected happens.
Unlike an error, a warning doesn’t abort the currently running program.
A simple example of a warning is when a number is divided by zero.  In
this case Octave will issue a warning and assign the value ‘Inf’ to the
result.

     a = 1/0
          ⊣ warning: division by zero
          ⇒ a = Inf

Issuing Warnings
Enabling and Disabling Warnings

automatically generated by info2www version 1.2.2.9