bugGNU Octave - Bugs: bug #44112, signal package:...

 
 

bug #44112: signal package: specgram(rand(384,1)) and smaller give errors

Submitted by:  Thomas Käfer <kaefert>
Submitted on:  Wed 28 Jan 2015 09:45:12 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Mike Miller <mtmiller>
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 29 Jan 2015 04:18:18 AM UTC, comment #1:

Thanks for your bug report. The length of the input sequence has to be greater than the window length, which defaults to 256. If you specify a smaller segment size or window size, you won't get this error.

I have added an error check for the first error you described, when the input is smaller than the window size:

http://sourceforge.net/p/octave/signal/ci/c18926ec0e6e

The second error you are seeing is due to an error plotting images with Gnuplot, I've reported this as bug #44114. There's not much else that can be fixed in the specgram function for this error, so closing this bug as fixed.

Mike Miller <mtmiller>
Project AdministratorIn charge of this item.
Wed 28 Jan 2015 09:45:12 PM UTC, original submission:

the function specgram() started with no additional parameters but the data vector throws error (and stops the parent script from running) when given a vector of 384 items or less.

For 256 items and less, these error messages are shown:

for the default plotting engine, everything above 256 items outputs a plot, but with gnuplot (which I need for beeing able to plot in the background without producing an x window & through parcellfun()) after between 267 and 384 this errors are shown:

and lots of crazy caracters that produce:
line 0: invalid character

errors as a result

Thomas Käfer <kaefert>

 

(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)
  • -unavailable- added by kaefert (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Jan 2015 04:18:37 AM UTCmtmillerOpen/ClosedOpen=>Closed
    Thu 29 Jan 2015 04:18:18 AM UTCmtmillerItem GroupSegfault, Bus Error, etc.=>Incorrect Result
      StatusNone=>Fixed
      Assigned toNone=>mtmiller
      Operating SystemGNU/Linux=>Any
      Summarysignal -> specgram(rand(384,1)) and smaller give errors=>signal package: specgram(rand(384,1)) and smaller give errors

    Back to the top


    Powered by Savane 3.1-cleanup1