// Cancellation of common factors and determination of covariance // 11.7 // function [N,dN,D,dD,yvar] = tfvar(N,dN,D,dD) // N and D polynomials in z^{-1} form; discrete case function [N,dN,D,dD,yvar] = tfvar(N,dN,D,dD) [N,dN,D,dD] = l2r(N,dN,D,dD); N = N/D(1); D = D/D(1); LN = length(N); LD = length(D); D1 = D; if LD