Bug 820791

Summary: octave function filter() does not take an initial state
Product: [Fedora] Fedora Reporter: Henry Leinhos <henry.leinhos>
Component: octaveAssignee: Rakesh Pandit <rpandit>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: alex, mmahut, orion, rpandit, susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-11 11:11:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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