Previous: Handling Errors, Up: Errors and Warnings [Contents][Index]
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
to the result.
a = 1/0 -| warning: division by zero ⇒ a = Inf