Skip to Main Content Skip to Search
Product Documentation

rfmodel.rational class - Package: rfmodel

Rational function model

Syntax

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

Description

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

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

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.

Properties

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

Methods

freqrespFrequency response of model object
ispassiveCheck passivity of scalar model object
steprespStep-signal response of model object
timerespTime response for model object
writevaWrite Verilog-A description of RF model object

Examples

Fit a rational function to data from an rfdata.data object:

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
 

Define, evaluate, and visualize a rational function in three steps:

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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