octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46650] disable warning about division by zero


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #46650] disable warning about division by zero by default
Date: Fri, 11 Dec 2015 07:24:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #7, bug #46650 (project octave):

Matlab seems to have removed the warning after R2006b, according to this
blog:

http://blogs.mathworks.com/loren/2006/10/18/controlling-warning-messages-and-state/

When I try some things in R2013a it seems the msgid is still valid but the
warning is never shown.

>> 1/0

ans =

   Inf
 
>> warning('on','MATLAB:divideByZero')
>> 1/0

ans =

   Inf

>> warning('on','MATLAB:divide-by-zero')
Error using warning
Unknown setting or incorrect message identifier 'MATLAB:divide-by-zero'.
 
>> warning on
>> 1/0

ans =

   Inf

>> warning('query','MATLAB:divideByZero')
The state of warning 'MATLAB:divideByZero' is 'on'.
>> 1/0

ans =

   Inf

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46650>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]