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

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

[Octave-bug-tracker] [bug #42832] signal package: findpeaks: operator -:


From: anonymous
Subject: [Octave-bug-tracker] [bug #42832] signal package: findpeaks: operator -: nonconformant arguments - when no peaks found
Date: Wed, 23 Jul 2014 10:44:55 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:30.0) Gecko/20100101 Firefox/30.0

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

                 Summary: signal package: findpeaks: operator -: nonconformant
arguments - when no peaks found
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 23 Jul 2014 10:44:53 UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When using findpeaks (from the 1.3.0 version of the signal processing toolset)
on a data set where there are no peaks, e.g. [1 1 1 1 1 1], then the following
error is raised: 

'error: findpeaks: operator -: nonconformant arguments (op1 is 0x1, op2 is
1x0)
error: evaluating argument list element number 1
error: called from:
error:   findpeaks.m at line 135, column 5'

This may be by design, but perhaps returning empty idx and pks arrays would be
more condusive as opposed to having to catch and handle this error to handle
the case when no peaks are found. For comparison, the findpeaks function in
Matlab returns an empty array on finding no peaks.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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