Bug 820791 - octave function filter() does not take an initial state
Summary: octave function filter() does not take an initial state
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: octave
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rakesh Pandit
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-11 00:59 UTC by Henry Leinhos
Modified: 2012-05-11 22:05 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-11 11:11:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Henry Leinhos 2012-05-11 00:59:29 UTC
Description of problem:
filter() function does not accept an initial state


Version-Release number of selected component (if applicable):
octave-3.4.3-1.fc16.x86_64


How reproducible:
every time


Steps to Reproduce:
1. run octave
2. in octave:
octave:3> a=1;
octave:4> b=ones(5,1)/5;
octave:5> [x IS] = filter(b,a,[1;zeros(10,1)],[])
octave:6> IS
IS =

   0
   0
   0
   0
octave:7> [x IS] = filter(b,a,[1;zeros(10,1)],IS);
error: filter: first dimension of SI must be of length max (length (a), length (b)) - 1

but
octave:7> max (length (a), length (b)) - 1
ans =  4

???

Expected results:

IS is the returned filter state and is the correct dimensions, but is not accepted as an input parameter


Additional info:

Comment 1 Susi Lehtola 2012-05-11 08:44:44 UTC
Upstreamed
https://savannah.gnu.org/bugs/index.php?36449

Comment 2 Susi Lehtola 2012-05-11 11:11:03 UTC
This is fixed in 3.6.1 which is available in Fedora 17.

Comment 3 Henry Leinhos 2012-05-11 22:05:38 UTC
Just tried the F17 source rpm and it builds without any problem (+ all the octave-forge packages).

Thanks


Note You need to log in before you can comment on or make changes to this bug.