[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43895] freqz plot should extend to end of ran
From: |
Doug Stewart |
Subject: |
[Octave-bug-tracker] [bug #43895] freqz plot should extend to end of range, not 1 data point short. |
Date: |
Mon, 29 Dec 2014 17:52:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 |
Follow-up Comment #5, bug #43895 (project octave):
if (strcmp (region, "whole"))
N = n;
else
N = 2*n;
endif
n=n+1; # add 1 to get all the way to PI
f = Fs * (0:n-1).' / N;
pad_sz = N*ceil (k/N);
b = postpad (b, pad_sz);
a = postpad (a, pad_sz);
This is where I put it.
I did not study the code to see if this is the best fix, just a quick try.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43895>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/