bugGNU Octave - Bugs: bug #31391, demodmap.m crashes when 'fd' is a...

 
 

bug #31391: demodmap.m crashes when 'fd' is a row vector

Submitted by:  None
Submitted on:  Thu 21 Oct 2010 05:48:36 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Octave ForgeAssigned to: None
Originator Name: FranciscoOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.4
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 21 Oct 2010 06:09:29 AM UTC, comment #1:

This looks like a problem with an Octave Forge package, not a bug
in Octave. The correct place to report this problem is the
Octave Forge mailing list, octave-dev@lists.sourceforge.net.

A copy of this update to the bug report is being sent to that
list so that they are aware of it. Please follow up there.

John W. Eaton <jwe>
Project Administrator
Thu 21 Oct 2010 05:48:36 AM UTC, original submission:

The solution is moving this 3 lines:

if (abs(fs/fd - floor(fs/fd)) > eps)
error ("demodmap: the sample rate Fs must be an integer multiple of Fd");
endif

bellow this block of code:

if (!isscalar(fd))
if (isequal(size(fd),[1,2]))
off = fd(2);
fd = fd(1);
else
error ("demodmap: sampling rate Fd must be a scalar or two-element row-vector");
endif
else
off = 0;
endif

so when the division takes place, the conversion to scalar is done.

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 jwe (Posted a comment)
  • -unavailable- added by jwe
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Oct 2010 06:09:29 AM UTCjweStatusNone=>Octave Forge
      Open/ClosedOpen=>Closed
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1