octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39177] signal package: fir1(8000, 0.01) does


From: Charlie Hagedorn
Subject: [Octave-bug-tracker] [bug #39177] signal package: fir1(8000, 0.01) does not work
Date: Thu, 13 Jun 2013 20:42:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36

Follow-up Comment #2, bug #39177 (project octave):

Doesn't look like fir1 has changed substantially between versions, but fir2
has. Here's a comparison between octave-signal_1.1.3 and 1.2.2 in Debian
(1.2.0 is quite similar). 

[~/Downloads/signal/inst]$ diff fir1.m
/usr/share/octave/packages/signal-1.2.2/fir1.m
143,145c143,145
< %!assert(fir1(2, .5, 'low', @hanning, 'scale'), [0 1 0]');
< %!assert(fir1(2, .5, 'low', "hanning", 'scale'), [0 1 0]');
< %!assert(fir1(2, .5, 'low', hanning(3), 'scale'), [0 1 0]');
---
> %!assert(fir1(2, .5, 'low', @hanning, 'scale'), [0 1 0]);
> %!assert(fir1(2, .5, 'low', "hanning", 'scale'), [0 1 0]);
> %!assert(fir1(2, .5, 'low', hanning(3), 'scale'), [0 1 0]);


[~/Downloads/signal/inst]$ diff fir2.m
/usr/share/octave/packages/signal-1.2.2/fir2.m | wc -l
89


Furthermore, simple substitution of the old fir2 into a bare directory
executes without error. I haven't yet checked that the output is correct.
Qualitative checks with my own code and with freqz both suggest that it may
be.

[~/octavebug]$ ls
fir2.m
[~/octavebug]$ octave
GNU Octave, version 3.6.4
...
octave:1> size(fir1(10000,0.01))
ans =

   10001       1

octave:2> 



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39177>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]