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

 
 

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

Submitter:  Thomas Käfer <kaefert>
Submitted:  Wed 28 Jan 2015 09:45:12 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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:


specgram(rand(256,1))
error: 'xdata' undefined near line 179 column 49
error: evaluating argument list element number 5
error: called from:
error:   /usr/local/share/octave/3.8.2/m/image/image.m at line 179, column 5
error:   /usr/local/share/octave/3.8.2/m/image/image.m at line 116, column 10
error:   /usr/local/share/octave/3.8.2/m/image/imagesc.m at line 97, column 12
error:   /home/kaefert/octave/signal-1.3.0/specgram.m at line 167, column 5


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:


multiplot> plot "-" binary array=2x128 scan=yx origin=(0.5,0) dx=0 dy=0.0078125 using 1 title "" with image; ;
line 0: Sample period must be positive. Try `flip` for changing direction


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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by kaefert (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-29 mtmiller Open/ClosedOpen Closed
    2015-01-29 mtmiller Item GroupSegfault, Bus Error, etc. Incorrect Result
        StatusNone Fixed
        Assigned toNone mtmiller
        Operating SystemGNU/Linux Any
        Summarysignal -&gt; 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.13-f8d8.
    Corresponding source code