[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43506] fir1 returns completely wrong results
From: |
John |
Subject: |
[Octave-bug-tracker] [bug #43506] fir1 returns completely wrong results |
Date: |
Fri, 31 Oct 2014 03:14:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 |
URL:
<http://savannah.gnu.org/bugs/?43506>
Summary: fir1 returns completely wrong results
Project: GNU Octave
Submitted by: jcoppens
Submitted on: Fri 31 Oct 2014 03:14:30 AM GMT
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: John
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Somewhat surprised when I submitted a simple bandpass filter to the fir1
function and got wrong results (according docs the fir1 should return a
bandpass by default, which it did not, but even when specifying the filter
type, the result was the same, i.e. wrong).
I then looked up the docs for Matlab docs and submitted the example to
Octave:
octave:2> b = fir1(48,[0.35 0.65]);
octave:3> freqz(b,1,512)
The result from Matlab is in the first attachment, the result from Octave in
the second. Maybe I'm doing something wrong here?
It seems the upper limit is more or less correct, but the lower limit is
always at 0. Adding ", 'bandpass'" makes no difference.
Octave is version 3.8.1.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 31 Oct 2014 03:14:30 AM GMT Name: Screenshot - 10302014 - 09:55:41
PM.png Size: 36kB By: jcoppens
<http://savannah.gnu.org/bugs/download.php?file_id=32346>
-------------------------------------------------------
Date: Fri 31 Oct 2014 03:14:30 AM GMT Name: Screenshot - 10302014 - 09:56:13
PM.png Size: 16kB By: jcoppens
<http://savannah.gnu.org/bugs/download.php?file_id=32347>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43506>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43506] fir1 returns completely wrong results,
John <=