bugGNU Octave - Bugs: bug #42832, signal package: findpeaks:...

 
 

bug #42832: signal package: findpeaks: operator -: nonconformant arguments - when no peaks found

Submitted by:  None
Submitted on:  Wed 23 Jul 2014 10:44:53 AM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: other
Operating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 24 Jul 2014 12:27:39 PM UTC, comment #1:

Thanks for your bug report. Confirmed here as well.

Mike Miller <mtmiller>
Project Member
Wed 23 Jul 2014 10:44:53 AM UTC, original submission:

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Jul 2014 12:27:39 PM UTCmtmillerItem GroupInaccurate Result=>Incorrect Result
      StatusNone=>Confirmed
      Release3.8.1=>other
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup