bugGNU Octave - Bugs: bug #43281, [signal 1.3.0]: filter design...

 
 

bug #43281: [signal 1.3.0]: filter design function fir2 gives incorrect result

Submitter:  None
Submitted:  Mon 22 Sep 2014 10:38:07 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  David Lowenfels Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Sep 2014 11:16:47 AM UTC, comment #2: 

Thanks for your report anyway. Closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Mon 22 Sep 2014 10:53:46 PM UTC, comment #1: 

oops I just realized this is a duplicate of bug #42763 and fixed in 3.8.2
sorry! I guess I made a mistake with the bug search feature. Please delete this ticket.

David Lowenfels <dfl>
Mon 22 Sep 2014 10:38:07 PM UTC, original submission:  

the code I ran is the example from the output of `help fir2`


f = [0, 0.3, 0.3, 0.6, 0.6, 1]; m = [0, 0, 1, 1/2, 0, 0];
[h, w] = freqz (fir2 (100, f, m));
 plot (f, m, ";target response;", w/pi, abs (h), ";filter response;");


the resulting graph should be a bandpass filter between 0.3 and 0.6. However it is between 0 and 0.6.


the same problem happens with fir1 as well (which just called fir2 anyways)
freqz(fir1 (100, [0.3, 0.6]))


I suppose `demo fir2` can also be run to make some erroneous graphs.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #32170:  9_22_14__3_20_PM.png added by None (41KiB - image/png - this is the output graph)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dfl (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-23 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
    2014-09-22 None Attached File- Added 9_22_14__3_20_PM.png, #32170

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code