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

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

[Octave-bug-tracker] [bug #40617] nanmin and nanmax don't return an inde


From: anonymous
Subject: [Octave-bug-tracker] [bug #40617] nanmin and nanmax don't return an index
Date: Mon, 18 Nov 2013 03:23:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?40617>

                 Summary: nanmin and nanmax don't return an index
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 18 Nov 2013 03:23:32 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Gio
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

According to the documentation, nanmax and nanmin should return a second
output, with the index of the values, see
http://octave.sourceforge.net/statistics/function/nanmax.html

however, looking at the code of the function, the output idx is not
specified.
I suggest to change all the occurrences of:


v = max(...


into:


[v, idx] = max(...


Similar changes should be applied to nanmin. I'm using Octave 3.7.7 and
statistics 1.2.2.
Thank you very much for developing these useful tools




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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