rfmodel.rational

Rational function model

Class Description

Use the rational class to represent RF components using a rational function model of the form

(7-1)

There are two ways to construct an rfmodel.rational object:

Constructor Summary

NameDescription
rfmodel.rationalCreate rfmodel.rational object

Property Summary

NameDescription
APoles of rational function
CResidues of rational function
DFrequency response offset
DelayFrequency response time delay
NameObject name

Method Summary

NameDescription
freqrespCalculate frequency response of model object
timerespCalculate time response for model object
writevaWrite Verilog-A description of RF model object

Examples

orig_data=read(rfdata.data,'default.s2p');
freq=orig_data.Freq;
data=orig_data.S_Parameters(2,1,:);
fit_data=rationalfit(freq,data)

fit_data =
 
     Name: 'Rational Function'
     A: [2x1 double]
     C: [2x1 double]
     D: 0
     Delay: 0

Back to Top


Properties


A

Poles of rational function

Values

Vector

Description

Complex vector containing poles of the rational function in radians per second. Its length, shown in Equation 7-1 as n, must be equal to the length of the vector you provide for 'C'. n is the number of poles in the rational function model. This property is empty by default.

Examples

rat = rfmodel.rational;
rat.A = [-0.0532 + 1.3166i; -0.0532 - 1.3166i]*1e10;

C

Residues of rational function

Values

Vector

Description

Complex vector containing residues of the rational function in radians per second. Its length, shown in Equation 7-1 as n, must be equal to the length of the vector you provide for 'A'. n is the number of residues in the rational function model. This property is empty by default.

Examples

rat = rfmodel.rational;
rat.C = [4.4896 - 4.5025i; 4.4896 + 4.5025i]*1e9;

D

Frequency response offset

Values

Scalar

Description

Scalar value specifying the constant offset in the frequency response of the rational function. The default is 0.

Examples

rat = rfmodel.rational;
rat.D = 1e-3;

Delay

Frequency response time delay

Values

Scalar

Description

Scalar value specifying the time delay, in seconds, in the frequency response of the rational function. The default is 0.

Examples

rat = rfmodel.rational;
rat.Delay = 1e-9;

Name

Object name

Values

'Rational Function'

Description

Read-only string that contains the name of the object.

Examples

rat = rfmodel.rational;
rat.Name

ans =
 
           Rational Function

Back to Top


Constructor


rfmodel.rational

Create rfmodel.rational object

Syntax

h = rfmodel.rational
h = rfmodel.rational('Property1',value1,'Property2',value2,...)

Description

h = rfmodel.rational returns a rational function model object whose properties are set to their default values.

h = rfmodel.rational('Property1',value1,'Property2',value2,...) returns a rational function model object, h, with the specified properties. Properties that you do not specify retain their default values.

Examples

Construct a rational function model, rat, with poles at -4 Mrad/s, -3 Grad/s, and -5 Grad/s and residues of 600 Mrad/s, 2 Grad/s and 4 Grad/s. Then, perform frequency-domain analysis from 1.0 MHz to 3.0 GHz. Plot the resulting frequency response in decibels on the X-Y plane.

rat=rfmodel.rational...
     ('A',[-5e9,-3e9,-4e6],...
      'C',[6e8,2e9,4e9]);      % Create model
f = [1e6:1.0e7:3e9];           % Simulation frequencies
[resp,freq]=freqresp(rat,f);   % Compute frequency response
figure
 plot(freq/1e9,db(resp));      % Plot frequency response
 xlabel('Frequency (GHz)')
 ylabel('Magnitude (dB)')

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS