[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31391] demodmap.m crashes when 'fd' is a row
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #31391] demodmap.m crashes when 'fd' is a row vector |
Date: |
Thu, 21 Oct 2010 05:48:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko/20100928 Firefox/3.6.10 |
URL:
<http://savannah.gnu.org/bugs/?31391>
Summary: demodmap.m crashes when 'fd' is a row vector
Project: GNU Octave
Submitted by: None
Submitted on: Thu 21 Oct 2010 05:48:36 AM UTC
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Francisco
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31391>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31391] demodmap.m crashes when 'fd' is a row vector,
anonymous <=