ARL2(G)

NAME
arl2 - L2 approximation

CALLING SEQUENCE
[den,num,err]=arl2(y,den0,n [,imp])

PARAMETERS

y   : real vector or polynomial in z^-1

den0,den,num
    : polynomials

n   : integer (degree of den)

imp : integer in (0,1,2) (verbose mode)

err : real constant (l2-error)

DESCRIPTION
[den,num,err]=arl2(y,den0,n [,imp]) finds a pair of polynomials num and den such that the coefficients of the long division of num by den approximate (with a minimal l2 norm) the vector y:

ldiv(num,den,ny) is approximately [y(1),y(2),...,y(ny)] If y(z) = y(1)(1/z)+y(2)(1/z^2)+ ...+ y(ny)(1/z^ny) then l2-norm of num/den - y(z) is err.

n is the degree of the polynomial den.

Various intermediate results are printed according to imp.

SEE ALSO
ldiv, imrep2ss