[Top][All Lists]

[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: Rik
Subject: [Octave-bug-tracker] [bug #43895] freqz plot should extend to end of range, not 1 data point short.
Date: Mon, 12 Jan 2015 00:52:01 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

Follow-up Comment #6, bug #43895 (project octave):

Could somebody with access to Matlab run the following and report the

[a,b] = freqz (1, [1, -0.5, 0.8], 10)

@Doug: using your patch this returns an 11-point vector whereas the
documentation seems to imply this should return a 10-point vector (same as n).
 I think instead of changing the value of 'n' we want to change the spacing of

The code change below works to return a 10-point vector and display everything
out to a normalized frequency of 1.0.

-    f = Fs * (0:n-1).' / N;
+    f = Fs * linspace (0, n, n).' / N; 


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]