[an error occurred while processing this directive]
|
function tau=grp_del(b,a,w)
b=fliplr(b);
a=fliplr(a);
[b,a]=eqtflength(b,a);
Br=b;
Br(2:2:end)=0;
Br(3:4:end)=-Br(3:4:end);
Bi=b;
Bi(1:2:end)=0;
Bi(4:4:end)=-Br(4:4:end);
Ar=a;
Ar(2:2:end)=0;
Ar(3:4:end)=-Ar(3:4:end);
Ai=a;
Ai(1:2:end)=0;
Ai(4:4:end)=-Ar(4:4:end);
Ar=fliplr(Ar);
Ai=fliplr(Ai);
Br=fliplr(Br);
Bi=fliplr(Bi);
den_B=conv(Br,Br)+conv(Bi,Bi);
den_A=conv(Ar,Ar)+conv(Ai,Ai);
[num_B,tmp]=polyder(Bi,Br);
[num_A,tmp]=polyder(Ai,Ar);
tau=-polyval(num_B,w)./polyval(deb_B,w) + polyval(num_A,w)./polyval(deb_A,w);
E-mail: info@telesys.ru