%RESIDUED computes the partial fraction form from transfer-function form B/A. % [R,P,F] = residued(B,A) converts the transfer function B(z)/A(z) to % the partial fraction form: % % B(z) N R(n) NF % ---- = z^(-NF) * SUM --------------- + SUM F(i)*z^(-i+1) % A(z) n=1 (1-P(n)/z)^M(n) i=1 % % where NF = nb-na+1 (length of FIR part), N=na-1 (number of poles), % nb=length(B), na = length(A). When nb