Scilab Function

frep2tf - transfer function realization from frequency response

Calling Sequence

[h [,err]]=frep2tf(frq,repf,dg [,dom,tols,weight])

Parameters

Description

Frequency response to transfer function conversion. The order of h is a priori given in dg which must be provided. The following linear system is solved in the least square sense.

 weight(k)*(n( phi_k) - d(phi_k)*rep_k)=0, k=1,..,n
   

where phi_k= 2*%i*%pi*frq when dom='c' and phi_k=exp(2*%i*%pi*dom*frq if not. If the weight vector is not given a default penalization is used (when dom='c').

A stable and minimum phase system can be obtained by using function factors.

Examples

See Also