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

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

[Octave-bug-tracker] [bug #44446] indexing error within function causes


From: anonymous
Subject: [Octave-bug-tracker] [bug #44446] indexing error within function causes fail
Date: Fri, 06 Mar 2015 10:27:06 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0

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

                 Summary: indexing error within function causes fail
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 06 Mar 2015 10:27:05 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Christoph Weise
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Any

    _______________________________________________________

Details:

When checking derivatives function findpeaks may evaluate an index to 0 (on
line 123):

  idx = find (df1.*circshift(df1,1)<0 & df2<0)-1;



Suggest you add a workaround to get rid of such indices, otherwise an error
results. Not fully checked the math, but, since derivative sign changes at
edges are presumably not meaningful, it is prob ok to throw away such an index
which is not meaningful anyway:
  
  idx(idx==0)=[];
  







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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