fitsys 239
fitsys
Syntax
[sys] = fitsys(data,npoles,nzeros,weight, {skipchks,Hertz})
Parameter List
Inputs: data Complex valued data (pdm).
npoles Order of requested fit. (optional, default = 0).
nzeros Number of zeros in transfer function. (optional, default =
npoles)
weight Weighting function. (scalar, pd m,orDynamic System)
(optional, default = 1).
Keywords: Hertz Boolean. This keyword is mandatory as the function must
know whether the domain is in Hertz or radians/second
(specified by !Hertz) to fit correctly. Note that the Xmath
function freq assumes that the frequency range is specified
in Hertz.
skipchks Boolean. Skip the error checking. (Default = 0)
Outputs: sys Dynamic system, order = npoles.
Description
Fits a transfer function to complex valued data. npoles and nzeros specifies the number
of poles and zeros.
The optional argument weight, specifies a weighting for the fit. If weight is a pdm it
must be over the same domain as data. It may also be a Dynamic System, in which
case the magnitude of its frequency response is the weight. A scalar weight may also be
specified although this will have no effect. For logscale frequency data a weight of close
to 1/s is strongly recommended.