This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Frequency response of a rational function and rationalfit function object


[response, outputfreq] = freqresp(rationalobject,inputfreq)
[response, outputfreq] = freqresp(fit,inputfreq)


[response, outputfreq] = freqresp(rationalobject,inputfreq) calculates the frequency response, response of a rational function object, rationalobject at the specified input frequencies, inputfreq.


[response, outputfreq] = freqresp(fit,inputfreq) calculates the frequency response of the fit.


collapse all

Compute the frequency response of data stored in the file,|passive.s2p| by reading it into an rfdata object, fitting a rational function object to the data, and using the freqresp method to compute the frequency response of the object

orig_data = with properties:

            Freq: [202x1 double]
    S_Parameters: [2x2x202 double]
      GroupDelay: [202x1 double]
              NF: [202x1 double]
            OIP3: [202x1 double]
              Z0: 50.0000 + 0.0000i
              ZS: 50.0000 + 0.0000i
              ZL: 50.0000 + 0.0000i
        IntpType: 'Linear'
            Name: 'Data object'

fit_data = 
   rfmodel.rational with properties:

        A: [6x1 double]
        C: [6x1 double]
        D: 0
    Delay: 0
     Name: 'Rational Function'




Input Arguments

collapse all

Rational function object, specified as an object handle created using rationalfit.

Example: [resp,freq]=freqresp(fit_data,freq); where fit_data is the rational object handle created using rationalfit.

Data Types: char | string

Input frequencies, specified as a vector of positive frequencies in Hz.

Data Types: double

N-by-N array, specified rfmodel.rational objects returned by rationalfit.

Output Arguments

collapse all

Frequency response values, returned as a vector.

Frequency values same as input frequencies, returned as a vector.

Introduced before R2006a