Main Content

rationalfit

Perform rationalfit on an S-parameters object

Description

[fit,errdb] = rationalfit(s,i,j)使用rationalfitfunction to construct afit, anrfmodel.rationalobject fitting only the (i,j)th element of the S-parameter objects. This syntax is equivalent torationalfit(s.Frequencies,rfparam(s,i,j),...).

example

[fit,errdb] = rationalfit(s)使用rationalfitfunction to construct afit, anN-by-Nofrfmodel.rationalobjects (sharing identical poles) fitting all theN-by-Nelements of the S-parameter objects. You can directly pass thisN-by-Nfittofreqresp,ispassive,passivityfunctions. This syntax is equivalent torationalfit(s.Frequencies,S.Parameters).

Examples

collapse all

Read a file namedpassive.s2pand fit the 2x2 S-parameters.

S = sparameters('passive.s2p'); fit = rationalfit(S)
fit=2×2 object2x2 rfmodel.rational array with properties: A C D Delay Name

Input Arguments

collapse all

S-parameters, specified as an RF Toolbox™ network parameter object. To create this type of object, use thesparametersfunction.

Row index of data to plot, specified as a positive integer.

Column index of data to plot, specified as a positive integer.

Output Arguments

collapse all

One or more rational function objects, returned as anN-by-Nrfmodel.rationalobject. The number of dimensions indatadetermines the dimensionality ofh.

Relative error achieved, returned as adouble, in dB.

Introduced before R2006a