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

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

[Octave-bug-tracker] [bug #55264] mean([]) throws incompatible warning


From: Hartmut
Subject: [Octave-bug-tracker] [bug #55264] mean([]) throws incompatible warning
Date: Fri, 21 Dec 2018 15:30:32 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

URL:
  <https://savannah.gnu.org/bugs/?55264>

                 Summary: mean([]) throws incompatible warning
                 Project: GNU Octave
            Submitted by: hardy
            Submitted on: Fri 21 Dec 2018 08:30:31 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Any

    _______________________________________________________

Details:

In Matlab (R2018b) the command the mean of an empty matrix "mean([])" simply
returns NaN. No warning is issued.

In Octave (4.4.1) the same command "mean([])" also returns NaN. But we
additionally issue a warning message "division by zero".

This current Octave behavior
* is incompatible to Matlab
* gives this disturbing warning massage in a test of the wiener2 function in
the image package (this is what bothers me more...)

Could we remove the Octave warning message of "mean" for this case?




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55264>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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