GNU Octave Manual Version 3 by John W. Eaton, David Bateman, Søren Hauberg Paperback (6"x9"), 568 pages ISBN 095461206X RRP £24.95 ($39.95) |
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
ISBN 095461206X | GNU Octave Manual Version 3 | See the print edition |