Re: Problem with calculating the cascade realization of a FI
Thank you very much mathuranatham!
But I tried and get this:
>> b=[-0.24 0.184 0.448 1.296 0.4448 0.184 -0.24]
b =
-0.2400 0.1840 0.4480 1.2960 0.4448 0.1840 -0.2400
>> b=b./-0.24
b =
1.0000 -0.7667 -1.8667 -5.4000 -1.8533 -0.7667 1.0000
>> k=tf2latc(b)
??? Error using ==> d:/matlab/toolbox/signal/signal/private/levdown
At least one of the reflection coefficients is equal to one.
The algorithm fails for this case.
Error in ==> D:\matlab\toolbox\signal\signal\poly2rc.m
On line 48 ==> [a,e(k)] = levdown(a,e(k+1));
Error in ==> D:\matlab\toolbox\signal\signal\tf2latc.m (fir2latc)
On line 151 ==> K = poly2rc(num);
Error in ==> D:\matlab\toolbox\signal\signal\tf2latc.m
On line 54 ==> [K,V,msg] = fir2latc(num,den,phaseOpt,nargout);
This is the same problem that I was having before.