help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: freqz behavior


From: Augustin Lefèvre
Subject: Re: freqz behavior
Date: Fri, 19 Jun 2020 09:28:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

Hello Tony,

The reason is that you are feeding complex coefficients in the second case, whereas in the first case all coefficients are real.

cf.  "octave/4.2.2/m/signal/freqz.m"




On 18/06/2020 21:57, Tony Richardson wrote:
% Poles 0.9 exp(+-j pi/4), Zero at -1
subplot(2, 1, 1)
theta_r = [-1 1]*pi/4;
a = poly(0.9*exp(j*theta_r));
b = poly(-1);
[H1 W1] = freqz(b, a);
plot(W1/pi, abs(H1))

% No poles.  Zeros at angles that are multiples of pi/4 on unit circle except at angle 0
subplot(2, 1, 2)
theta_r = [-3:-1 1:4]*pi/4;
a = 1;
b = poly(exp(j*theta_r));
[H2 W2] = freqz(b, a);
plot(W2/pi, abs(H2))



reply via email to

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