From: Alex Thiele on
Dear all,

I have written and used the following code under MATLAB ver 7.3 without any problem;

Numerator = ones(1,24);
Denominator = zeros(1,24);
Denominator(1,1) =24;
Averager_TF_z = tf([Numerator],[Denominator],1/6000);
bode(Averager_TF_z)

The code just generates the bode responses for a simple 24 point averager.

I am now trying to run the same code under MATALB version 7.10 and it no longer works correctly. The gain response returned from bode is correct, but the phase response is incorrect. The phase at 0Hz should be 0 and this is what ver 7.3 returned. Ver 7.10 however returns a phase of 2pi (720°) at 0Hz. The whole phase response is lifted.

I have tried searching for a change history of the bode function to see why it doesnt work anymore but cannot find it.

Any suggestions greatfully received. Many thanks,

Alex Thiele
From: Alex Thiele on
Correction 4pi = 720°!